mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-08 17:03:09 +00:00
* libwaku: create the WakuNode in the Waku thread. Not in the main thread * node_lifecycle_request.nim: moving hard-coded value to a const item * libwaku.nim: start using 'isOkOr' instead of 'isErr()'-approach * node_lifecycle_request.nim: better 'async' & 'await' usage. Not block the runtime
22 lines
459 B
Nim
22 lines
459 B
Nim
|
|
# This file contains the base message request type that will be handled
|
|
# by the Waku Node thread.
|
|
|
|
import
|
|
std/json,
|
|
stew/results
|
|
import
|
|
chronos
|
|
import
|
|
../../../waku/node/waku_node,
|
|
../waku_thread
|
|
|
|
type
|
|
InterThreadRequest* = ref object of RootObj
|
|
|
|
method process*(self: InterThreadRequest, node: ptr WakuNode):
|
|
Future[Result[string, string]] {.base.} = discard
|
|
|
|
proc `$`*(self: InterThreadRequest): string =
|
|
return $( %* self )
|