Skip to content

Commit

Permalink
chore: changing digest and hash log format from bytes to hex
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmer committed Jan 25, 2024
1 parent 4220411 commit 02364ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions waku/waku_archive/archive.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ else:

import
std/[tables, times, sequtils, options, algorithm, strutils],
stew/results,
stew/[results, byteutils],
chronicles,
chronos,
regex,
Expand Down Expand Up @@ -111,7 +111,7 @@ proc handleMessage*(w: WakuArchive,
msgReceivedTime = if msg.timestamp > 0: msg.timestamp
else: getNanosecondTime(getTime().toUnixFloat())

trace "handling message", pubsubTopic=pubsubTopic, contentTopic=msg.contentTopic, timestamp=msg.timestamp, digest=msgDigest, messageHash=msgHash
trace "handling message", pubsubTopic=pubsubTopic, contentTopic=msg.contentTopic, timestamp=msg.timestamp, digest=toHex(msgDigest.data), messageHash=toHex(msgHash)

let putRes = await w.driver.put(pubsubTopic, msg, msgDigest, msgHash, msgReceivedTime)
if putRes.isErr():
Expand Down

0 comments on commit 02364ac

Please sign in to comment.