restructure and rename, making mainfsm the replication package itself

This commit is contained in:
Christian Schwarz
2018-08-22 00:10:09 +02:00
parent 2f205d205b
commit 301c7b2dd5
17 changed files with 348 additions and 303 deletions
+1 -2
View File
@@ -9,7 +9,6 @@ import (
"github.com/zrepl/zrepl/zfs"
"sync"
"github.com/zrepl/zrepl/cmd/replication"
"github.com/zrepl/zrepl/cmd/replication/common"
)
type LocalJob struct {
@@ -148,7 +147,7 @@ outer:
j.mainTask.Enter("replicate")
rep := replication.NewReplication()
rep.Drive(ctx, common.NewEndpointPairPull(sender, receiver))
rep.Drive(ctx, sender, receiver)
j.mainTask.Finish()