mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-02 14:03:06 +00:00
* chore: use distinct type for Light push status codes * Make naming more explicit * test: use new light push error code in tests * fix missed line * fix thing
21 lines
497 B
Nim
21 lines
497 B
Nim
{.push raises: [].}
|
|
|
|
import std/options
|
|
import ../waku_core
|
|
|
|
type LightPushStatusCode* = distinct uint32
|
|
proc `==`*(a, b: LightPushStatusCode): bool {.borrow.}
|
|
proc `$`*(code: LightPushStatusCode): string {.borrow.}
|
|
|
|
type
|
|
LightpushRequest* = object
|
|
requestId*: string
|
|
pubSubTopic*: Option[PubsubTopic]
|
|
message*: WakuMessage
|
|
|
|
LightPushResponse* = object
|
|
requestId*: string
|
|
statusCode*: LightPushStatusCode
|
|
statusDesc*: Option[string]
|
|
relayPeerCount*: Option[uint32]
|