mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-15 09:26:38 +00:00
0f68274c85
- Use of observer observable pattern to inform delivery_monitor about subscription state - send_monitor becomes a publish observer of lightpush and relay - deliver monitor add more protection against possible crash and better logs - creating a separate proc in store client for delivery monitor
10 lines
280 B
Nim
10 lines
280 B
Nim
import chronicles
|
|
import ../../waku_core/message/message
|
|
|
|
type PublishObserver* = ref object of RootObj
|
|
|
|
method onMessagePublished*(
|
|
self: PublishObserver, pubsubTopic: string, message: WakuMessage
|
|
) {.base, gcsafe, raises: [].} =
|
|
error "onMessagePublished not implemented"
|