nph update

This commit is contained in:
Ivan FB 2026-06-26 15:07:31 +02:00
parent beaebf84d0
commit 2636551a11
No known key found for this signature in database
GPG Key ID: DF0C67A04C543270
2 changed files with 8 additions and 10 deletions

View File

@ -14,14 +14,13 @@ import logos_delivery/api/messaging_client_api
export event_broker, api_types
export channel_types, messaging_client_api
type
SendHandler* = proc(envelope: MessageEnvelope): Future[Result[RequestId, string]] {.
async: (raises: [CatchableError]), gcsafe
.}
## Egress dispatch boundary. Typically wraps `MessagingClient.send`;
## tests inject a fake that records calls and returns canned
## `RequestId`s so the send state machine can be exercised end-to-end
## without a network.
type SendHandler* = proc(envelope: MessageEnvelope): Future[Result[RequestId, string]] {.
async: (raises: [CatchableError]), gcsafe
.}
## Egress dispatch boundary. Typically wraps `MessagingClient.send`;
## tests inject a fake that records calls and returns canned
## `RequestId`s so the send state machine can be exercised end-to-end
## without a network.
EventBroker:
type ChannelMessageReceivedEvent* = object

View File

@ -72,8 +72,7 @@ type
messaging*: MessagingClientConf
reliableChannel*: ReliableChannelManagerConf
LogosDelivery* = ref object
## Entry point. Holds one instance of each API layer.
LogosDelivery* = ref object ## Entry point. Holds one instance of each API layer.
waku*: Waku
messagingClient*: MessagingClient
reliableChannelManager*: ReliableChannelManager