mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-09 09:23:14 +00:00
deploy: 4d40d817eadf0e4da82d2cd8adf295fac7740e6e
This commit is contained in:
parent
5f4c695550
commit
b60e011691
@ -125,7 +125,7 @@ method getAll*(db: WakuMessageStore, onData: message_store.DataProc, limit = non
|
||||
|
||||
let res = db.database.query(selectQuery, msg)
|
||||
if res.isErr:
|
||||
return err("failed")
|
||||
return err(res.error)
|
||||
|
||||
ok gotMessages
|
||||
|
||||
|
||||
@ -459,8 +459,9 @@ proc init*(ws: WakuStore, capacity = DefaultStoreCapacity) =
|
||||
if res.isErr:
|
||||
warn "failed to load messages from store", err = res.error
|
||||
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
|
||||
waku_store_messages.set(ws.messages.len.int64, labelValues = ["stored"])
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user