mirror of https://github.com/waku-org/nwaku.git
22 lines
458 B
Nim
22 lines
458 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/v2/node/waku_node,
|
|
../waku_thread
|
|
|
|
type
|
|
InterThreadRequest* = ref object of RootObj
|
|
|
|
method process*(self: InterThreadRequest, node: WakuNode):
|
|
Future[Result[string, string]] {.base.} = discard
|
|
|
|
proc `$`*(self: InterThreadRequest): string =
|
|
return $( %* self )
|