This commit is contained in:
Richard Ramos 2025-09-08 14:48:50 -04:00
parent 536b148f40
commit 116012ea1b
2 changed files with 8 additions and 3 deletions

2
vendor/mix vendored

@ -1 +1 @@
Subproject commit 5847afa996b13b28f524c4beb633b9e24114ef6b
Subproject commit bc0a9be91399ae62c1c0f213d00b84cb0aa2b2ef

View File

@ -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
)