mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-28 15:00:57 +00:00
fix(rest): fix bug in rest api when sending rln message (#2169)
This commit is contained in:
parent
f0f69b3235
commit
250e8b983c
@ -175,7 +175,7 @@ proc installRelayApiHandlers*(router: var RestRouter, node: WakuNode, cache: Mes
|
||||
|
||||
# if we reach here its either a non-RLN message or a RLN message with a valid proof
|
||||
debug "Publishing message", pubSubTopic=pubSubTopic, rln=defined(rln)
|
||||
if not (waitFor node.publish(some(pubSubTopic), resMessage.value).withTimeout(futTimeout)):
|
||||
if not (waitFor node.publish(some(pubSubTopic), message).withTimeout(futTimeout)):
|
||||
error "Failed to publish message to topic", pubSubTopic=pubSubTopic
|
||||
return RestApiResponse.internalServerError("Failed to publish: timedout")
|
||||
|
||||
@ -309,4 +309,4 @@ proc installRelayApiHandlers*(router: var RestRouter, node: WakuNode, cache: Mes
|
||||
error "Failed to publish message to topic", contentTopic=message.contentTopic
|
||||
return RestApiResponse.internalServerError("Failed to publish: timedout")
|
||||
|
||||
return RestApiResponse.ok()
|
||||
return RestApiResponse.ok()
|
||||
|
Loading…
x
Reference in New Issue
Block a user