Skip to content

Commit

Permalink
Lowered the doneCh size from 10 -> 1
Browse files Browse the repository at this point in the history
  • Loading branch information
gameofpointers committed Sep 28, 2023
1 parent eeec5f3 commit 85774e7
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 @@ -274,7 +274,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, 10)
cs.doneCh = make(chan error, 1)
go func() { cs.doneCh <- cs.handler.doSync(op) }()
}

Expand Down

0 comments on commit 85774e7

Please sign in to comment.