Commit 050f8f21 authored by acud's avatar acud Committed by GitHub

puller: silence quit errors (#346)

parent 8af4c5ed
......@@ -352,7 +352,7 @@ func (p *Puller) histSyncWorker(ctx context.Context, peer swarm.Address, bin uin
}
top, err := p.syncer.SyncInterval(ctx, peer, bin, s, cur)
if err != nil {
p.logger.Errorf("histSyncWorker error syncing interval. peer %s, bin %d, cursor %d, err %v", peer.String(), bin, cur, err)
p.logger.Debugf("histSyncWorker error syncing interval. peer %s, bin %d, cursor %d, err %v", peer.String(), bin, cur, err)
return
}
err = p.addPeerInterval(peer, bin, s, top)
......@@ -378,7 +378,7 @@ func (p *Puller) liveSyncWorker(ctx context.Context, peer swarm.Address, bin uin
}
top, err := p.syncer.SyncInterval(ctx, peer, bin, from, math.MaxUint64)
if err != nil {
p.logger.Errorf("liveSyncWorker exit on sync error. peer %s bin %d from %d err %v", peer, bin, from, err)
p.logger.Debugf("liveSyncWorker exit on sync error. peer %s bin %d from %d err %v", peer, bin, from, err)
return
}
if top == 0 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment