proper queue abstraction

This commit is contained in:
Christian Schwarz
2018-08-16 14:02:16 +02:00
parent 93929b61e4
commit bf1e626b9a
5 changed files with 199 additions and 140 deletions
+6
View File
@@ -126,6 +126,12 @@ func resolveConflict(conflict error) (path []*FilesystemVersion, msg string) {
return nil, "no automated way to handle conflict type"
}
func NewReplication() *Replication {
r := Replication{
state: Planning,
}
return &r
}
// Replicate replicates filesystems from ep.Sender() to ep.Receiver().
//
// All filesystems presented by the sending side are replicated,