mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
miner: go fmt
This commit is contained in:
parent
9b8c8c954d
commit
e3b4076376
1 changed files with 1 additions and 1 deletions
|
|
@ -328,7 +328,7 @@ func (w *worker) newWorkLoop(recommit time.Duration) {
|
||||||
clearPending := func(number uint64) {
|
clearPending := func(number uint64) {
|
||||||
w.pendingMu.Lock()
|
w.pendingMu.Lock()
|
||||||
for h, t := range w.pendingTasks {
|
for h, t := range w.pendingTasks {
|
||||||
if t.block.NumberU64() + staleThreshold <= number {
|
if t.block.NumberU64()+staleThreshold <= number {
|
||||||
delete(w.pendingTasks, h)
|
delete(w.pendingTasks, h)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue