Skip to content

Commit

Permalink
Merge d0c8bd7 into 306c8a6
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivansete-status authored Dec 15, 2023
2 parents 306c8a6 + d0c8bd7 commit d738f17
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion waku/waku_archive/archive.nim
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ proc handleMessage*(w: WakuArchive,

let putRes = await w.driver.put(pubsubTopic, msg, msgDigest, msgHash, msgReceivedTime)
if putRes.isErr():
error "failed to insert message", err=putRes.error
if "duplicate key value violates unique constraint" in putRes.error:
trace "failed to insert message", err=putRes.error
else:
debug "failed to insert message", err=putRes.error
waku_archive_errors.inc(labelValues = [insertFailure])

let insertDuration = getTime().toUnixFloat() - insertStartTime
Expand Down

0 comments on commit d738f17

Please sign in to comment.