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
+1 -1
View File
@@ -192,7 +192,7 @@ func (j *PullJob) doRun(ctx context.Context) {
ctx = streamrpc.ContextWithLogger(ctx, streamrpcLogAdaptor{j.task.Log().WithField("subsystem", "rpc.protocol")})
ctx = context.WithValue(ctx, contextKeyLog, j.task.Log().WithField("subsystem", "rpc.endpoint"))
j.rep = &replication.Replication{}
j.rep = replication.NewReplication()
retryNow := make(chan struct{})
j.rep.Drive(ctx, replication.NewEndpointPairPull(sender, puller), retryNow)