mirror of https://github.com/waku-org/nwaku.git
Fix assertion error.
This commit is contained in:
parent
985ec5c5a5
commit
a750c73144
|
@ -55,7 +55,8 @@ proc sendRlnMessage(
|
|||
payload: seq[byte] = "Hello".toBytes(),
|
||||
): Future[bool] {.async.} =
|
||||
var message = WakuMessage(payload: payload, contentTopic: contentTopic)
|
||||
assertResultOk client.wakuRlnRelay.appendRLNProof(message, epochTime())
|
||||
let appendRlnProofResult = client.wakuRlnRelay.appendRLNProof(message, epochTime())
|
||||
assertResultOk appendRlnProofResult
|
||||
discard await client.publish(some(pubsubTopic), message)
|
||||
let isCompleted = await completionFuture.withTimeout(FUTURE_TIMEOUT)
|
||||
return isCompleted
|
||||
|
|
Loading…
Reference in New Issue