Commit 0bc0be56 authored by acud's avatar acud Committed by GitHub

puller: exit on nextInterval error (#414)

parent 4bae1a0e
...@@ -385,11 +385,7 @@ func (p *Puller) histSyncWorker(ctx context.Context, peer swarm.Address, bin uin ...@@ -385,11 +385,7 @@ func (p *Puller) histSyncWorker(ctx context.Context, peer swarm.Address, bin uin
s, _, _, err := p.nextPeerInterval(peer, bin) s, _, _, err := p.nextPeerInterval(peer, bin)
if err != nil { if err != nil {
p.logger.Debugf("histSyncWorker nextPeerInterval: %v", err) p.logger.Debugf("histSyncWorker nextPeerInterval: %v", err)
// wait and retry? this is a local error return
// maybe just quit the peer entirely.
// not sure how to do this
<-time.After(30 * time.Second)
continue
} }
if s > cur { if s > cur {
if logMore { if logMore {
......
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