mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-28 15:00:57 +00:00
fix: display success message only if messages are loaded from the db
This commit is contained in:
parent
2b6922cdaa
commit
1217e25245
@ -459,8 +459,9 @@ proc init*(ws: WakuStore, capacity = DefaultStoreCapacity) =
|
|||||||
if res.isErr:
|
if res.isErr:
|
||||||
warn "failed to load messages from store", err = res.error
|
warn "failed to load messages from store", err = res.error
|
||||||
waku_store_errors.inc(labelValues = ["store_load_failure"])
|
waku_store_errors.inc(labelValues = ["store_load_failure"])
|
||||||
|
else:
|
||||||
|
info "successfully loaded from store"
|
||||||
|
|
||||||
info "successfully loaded from store"
|
|
||||||
debug "the number of messages in the memory", messageNum=ws.messages.len
|
debug "the number of messages in the memory", messageNum=ws.messages.len
|
||||||
waku_store_messages.set(ws.messages.len.int64, labelValues = ["stored"])
|
waku_store_messages.set(ws.messages.len.int64, labelValues = ["stored"])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user