Puller: refactor + use Task API
* drop rx byte count functionality * will be re-added to Task as necessary refs #10
This commit is contained in:
@@ -147,10 +147,9 @@ outer:
|
||||
{
|
||||
log := pullCtx.Value(contextKeyLog).(Logger)
|
||||
log.Debug("replicating from lhs to rhs")
|
||||
puller := Puller{j.replTask, local, log, j.Mapping, j.InitialReplPolicy}
|
||||
if err := puller.Pull(); err != nil {
|
||||
log.WithError(err).Error("error replicating lhs to rhs")
|
||||
}
|
||||
puller := Puller{j.replTask, local, j.Mapping, j.InitialReplPolicy}
|
||||
puller.Pull()
|
||||
|
||||
// use a ctx as soon as Pull gains ctx support
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
|
||||
Reference in New Issue
Block a user