mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-15 17:35:45 +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
14 lines
414 B
Nim
14 lines
414 B
Nim
import chronicles
|
|
|
|
type SubscriptionObserver* = ref object of RootObj
|
|
|
|
method onSubscribe*(
|
|
self: SubscriptionObserver, pubsubTopic: string, contentTopics: seq[string]
|
|
) {.base, gcsafe, raises: [].} =
|
|
error "onSubscribe not implemented"
|
|
|
|
method onUnsubscribe*(
|
|
self: SubscriptionObserver, pubsubTopic: string, contentTopics: seq[string]
|
|
) {.gcsafe, raises: [].} =
|
|
error "onUnsubscribe not implemented"
|