Skip to content

Commit

Permalink
bugfix: do not run the next sync op in Region and Zone
Browse files Browse the repository at this point in the history
  • Loading branch information
gameofpointers committed Oct 24, 2023
1 parent 9f6c4e0 commit 3b279bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions eth/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,10 @@ func (cs *chainSyncer) loop() {
defer cs.handler.downloader.Terminate()

for {
if op := cs.nextSyncOp(); op != nil {
cs.startSync(op)
if nodeCtx == common.PRIME_CTX {
if op := cs.nextSyncOp(); op != nil {
cs.startSync(op)
}
}
select {
case <-cs.peerEventCh:
Expand Down

0 comments on commit 3b279bb

Please sign in to comment.