mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
core/filtermaps: fix operator precedence in delete logging condition
This commit is contained in:
parent
cf93077fab
commit
bdc2119f0c
1 changed files with 1 additions and 1 deletions
|
|
@ -434,7 +434,7 @@ func (f *FilterMaps) safeDeleteWithLogs(deleteFn func(db ethdb.KeyValueStore, ha
|
||||||
lastLogPrinted = start
|
lastLogPrinted = start
|
||||||
)
|
)
|
||||||
switch err := deleteFn(f.db, f.hashScheme, func(deleted bool) bool {
|
switch err := deleteFn(f.db, f.hashScheme, func(deleted bool) bool {
|
||||||
if deleted && !logPrinted || time.Since(lastLogPrinted) > time.Second*10 {
|
if deleted && (!logPrinted || time.Since(lastLogPrinted) > time.Second*10) {
|
||||||
log.Info(action+" in progress...", "elapsed", common.PrettyDuration(time.Since(start)))
|
log.Info(action+" in progress...", "elapsed", common.PrettyDuration(time.Since(start)))
|
||||||
logPrinted, lastLogPrinted = true, time.Now()
|
logPrinted, lastLogPrinted = true, time.Now()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue