We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14e65e1 commit 6ea24f4Copy full SHA for 6ea24f4
epoch.go
@@ -2572,12 +2572,13 @@ func (e *Epoch) monitorProgress(round uint64) {
2572
2573
// Check if we have advanced to a higher round in the meantime while this task was dispatched.
2574
e.lock.Lock()
2575
- shouldAbort := round < e.round
+ epochRound := e.round
2576
+ shouldAbort := round < epochRound
2577
e.lock.Unlock()
2578
2579
if shouldAbort {
2580
e.Logger.Debug("Aborting monitoring progress for round because we advanced to a higher round",
- zap.Uint64("monitored round", round), zap.Uint64("new round", e.round))
2581
+ zap.Uint64("monitored round", round), zap.Uint64("new round", epochRound))
2582
return
2583
}
2584
0 commit comments