mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-07-26 14:33:27 +00:00
Convert the kernel_api operations — relay/filter/lightpush/store,
peer_manager, discovery, ping, debug/node-info — to typed {.ffi.} procs that
pass parameters directly and ride generic CBOR (no per-op request wrappers).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
8 lines
309 B
Nim
8 lines
309 B
Nim
proc lightpush_publish*(
|
|
self: LogosDelivery, pubsubTopic: string, message: WakuMessage
|
|
): Future[Result[string, string]] {.ffi.} =
|
|
## Returns the published message hash.
|
|
let hash = (await self.waku.lightpushPublish(PubsubTopic(pubsubTopic), message)).valueOr:
|
|
return err(error)
|
|
return ok(hash)
|