mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-07 16:33:08 +00:00
15 lines
428 B
Nim
15 lines
428 B
Nim
|
|
import chronos, results
|
||
|
|
import waku/[waku_node, waku_core]
|
||
|
|
|
||
|
|
type PublisherBase* = ref object of RootObj
|
||
|
|
wakuNode*: WakuNode
|
||
|
|
|
||
|
|
method send*(
|
||
|
|
self: PublisherBase,
|
||
|
|
topic: PubsubTopic,
|
||
|
|
message: WakuMessage,
|
||
|
|
servicePeer: RemotePeerInfo,
|
||
|
|
): Future[Result[void, string]] {.base, async.} =
|
||
|
|
discard
|
||
|
|
# when error it must return original error desc due the text is used for distinction between error types in metrics.
|