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:
Christian Schwarz
2017-12-26 21:37:48 +01:00
parent 59e34942d1
commit b69089a527
4 changed files with 247 additions and 274 deletions
+4 -5
View File
@@ -123,11 +123,10 @@ start:
log.Info("starting pull")
pullLog := log.WithField(logTaskField, "pull")
puller := Puller{j.task, client, pullLog, j.Mapping, j.InitialReplPolicy}
if err = puller.Pull(); err != nil {
log.WithError(err).Error("error doing pull")
}
j.task.Enter("pull")
puller := Puller{j.task, client, j.Mapping, j.InitialReplPolicy}
puller.Pull()
j.task.Finish()
closeRPCWithTimeout(log, client, time.Second*10, "")