Skip to content

Commit

Permalink
bugfix: Updated the doneCh size from 1 to 3
Browse files Browse the repository at this point in the history
  • Loading branch information
gameofpointers committed Oct 2, 2023
1 parent bd1d24b commit 53d039a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func (cs *chainSyncer) modeAndLocalHead() (downloader.SyncMode, *big.Int) {

// startSync launches doSync in a new goroutine.
func (cs *chainSyncer) startSync(op *chainSyncOp) {
cs.doneCh = make(chan error, 1)
cs.doneCh = make(chan error, 3)
go func() { cs.doneCh <- cs.handler.doSync(op) }()
}

Expand Down

0 comments on commit 53d039a

Please sign in to comment.