mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-09 14:26:27 +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
18 lines
342 B
Nim
18 lines
342 B
Nim
import ../../waku_core
|
|
|
|
type DeliveryDirection* {.pure.} = enum
|
|
PUBLISHING
|
|
RECEIVING
|
|
|
|
type DeliverySuccess* {.pure.} = enum
|
|
SUCCESSFUL
|
|
UNSUCCESSFUL
|
|
|
|
type DeliveryFeedbackCallback* = proc(
|
|
success: DeliverySuccess,
|
|
dir: DeliveryDirection,
|
|
comment: string,
|
|
msgHash: WakuMessageHash,
|
|
msg: WakuMessage,
|
|
) {.gcsafe, raises: [].}
|