diff --git a/pkg/accountsdb/accountsdb.go b/pkg/accountsdb/accountsdb.go index d7024cd7..ce102015 100644 --- a/pkg/accountsdb/accountsdb.go +++ b/pkg/accountsdb/accountsdb.go @@ -14,7 +14,6 @@ import ( "runtime/trace" "sync" "sync/atomic" - "time" "github.com/Overclock-Validator/mithril/pkg/accounts" "github.com/Overclock-Validator/mithril/pkg/addresses" @@ -51,7 +50,7 @@ type storeRequest struct { } func (accountsDb *AccountsDb) StoreQueueLen() int { - if !StoreAsync || accountsDb.inProgressStoreRequests == nil { + if accountsDb.inProgressStoreRequests == nil { return 0 } accountsDb.inProgressStoreRequestsMu.Lock() diff --git a/pkg/replay/block.go b/pkg/replay/block.go index 87b37df2..51d93dc8 100644 --- a/pkg/replay/block.go +++ b/pkg/replay/block.go @@ -2236,14 +2236,13 @@ func ReplayBlocks( var mem runtime.MemStats runtime.ReadMemStats(&mem) const gib = 1024 * 1024 * 1024 - mlog.Log.InfofPrecise(" memory: alloc %.1fGiB | inuse %.1fGiB | idle %.1fGiB | released %.1fGiB | objs %d | gc %d | store_async=%t queue=%d", + mlog.Log.InfofPrecise(" memory: alloc %.1fGiB | inuse %.1fGiB | idle %.1fGiB | released %.1fGiB | objs %d | gc %d | queue=%d", float64(mem.HeapAlloc)/gib, float64(mem.HeapInuse)/gib, float64(mem.HeapIdle)/gib, float64(mem.HeapReleased)/gib, mem.HeapObjects, mem.NumGC, - accountsdb.StoreAsync, acctsDb.StoreQueueLen(), )