Skip to content

Commit

Permalink
fix: asd
Browse files Browse the repository at this point in the history
  • Loading branch information
istae committed Jan 22, 2024
1 parent a5945f7 commit c6fe964
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkg/puller/puller.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,6 @@ func (p *Puller) syncPeerBin(parentCtx context.Context, peer *syncPeer, bin uint
}
// rate limit historical syncing
_ = p.limiter.Wait(ctx)
} else {
start += 1
}

select {
Expand Down Expand Up @@ -366,8 +364,8 @@ func (p *Puller) syncPeerBin(parentCtx context.Context, peer *syncPeer, bin uint
p.logger.Error(err, "syncWorker could not persist interval for peer, quitting", "peer_address", address)
return
}
loggerV2.Debug("syncWorker pulled", "bin", bin, "start", start, "topmost", top, "duration", time.Since(syncStart), "peer_address", address)
start = top
loggerV2.Debug("syncWorker pulled", "bin", bin, "start", start, "topmost", top, "isHistorical", isHistorical, "duration", time.Since(syncStart), "peer_address", address)
start = top + 1
}
}
}
Expand All @@ -380,7 +378,7 @@ func (p *Puller) syncPeerBin(parentCtx context.Context, peer *syncPeer, bin uint

peer.wg.Add(1)
p.wg.Add(1)
go sync(false, peer.address, cursor, bin, peer.wg.Done)
go sync(false, peer.address, cursor+1, bin, peer.wg.Done)
}

func (p *Puller) Close() error {
Expand Down

0 comments on commit c6fe964

Please sign in to comment.