mirror of https://github.com/voidlizard/hbs2
rpc-own-peer-key
This commit is contained in:
parent
5be6292a76
commit
5f32229bef
|
@ -636,11 +636,13 @@ withRPC saddr cmd = do
|
||||||
|
|
||||||
pingQ <- newTQueueIO
|
pingQ <- newTQueueIO
|
||||||
|
|
||||||
|
pokeQ <- newTQueueIO
|
||||||
|
|
||||||
prpc <- async $ runRPC udp1 do
|
prpc <- async $ runRPC udp1 do
|
||||||
env <- ask
|
env <- ask
|
||||||
proto <- liftIO $ async $ continueWithRPC env $ do
|
proto <- liftIO $ async $ continueWithRPC env $ do
|
||||||
runProto @UDP
|
runProto @UDP
|
||||||
[ makeResponse (rpcHandler (adapter pingQ))
|
[ makeResponse (rpcHandler (adapter pingQ pokeQ))
|
||||||
]
|
]
|
||||||
|
|
||||||
request rpc cmd
|
request rpc cmd
|
||||||
|
|
Loading…
Reference in New Issue