mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-02 14:03:06 +00:00
test
This commit is contained in:
parent
536b148f40
commit
116012ea1b
2
vendor/mix
vendored
2
vendor/mix
vendored
@ -1 +1 @@
|
||||
Subproject commit 5847afa996b13b28f524c4beb633b9e24114ef6b
|
||||
Subproject commit bc0a9be91399ae62c1c0f213d00b84cb0aa2b2ef
|
||||
@ -1193,8 +1193,13 @@ proc lightpushPublishHandler(
|
||||
mixify = mixify
|
||||
if mixify:
|
||||
#TODO: How to handle multiple addresses?
|
||||
let conn =
|
||||
node.mix.toConnection(peer.peerId, Opt.some(peer.addrs[0]), WakuLightPushCodec)
|
||||
let conn = node.mix.toConnection(
|
||||
MixDestination.init(peer.peerId, peer.addrs[0]), WakuLightPushCodec
|
||||
).valueOr:
|
||||
error "could not create mix connection"
|
||||
return lighpushErrorResult(
|
||||
SERVICE_NOT_AVAILABLE, "Waku lightpush with mix not available"
|
||||
)
|
||||
return await node.wakuLightpushClient.publishWithConn(
|
||||
pubsubTopic, message, conn, peer.peerId
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user