Use asyncSpawn instead of deprecated asyncCheck

This commit is contained in:
Nikolay Mitev 2022-06-08 09:43:43 +02:00 committed by zah
parent 84a89e918a
commit c1f7503402
1 changed files with 1 additions and 1 deletions

View File

@ -61,6 +61,6 @@ proc setupCommonRpc*(node: EthereumNode, conf: NimbusConf, server: RpcServer) =
server.rpc("nimbus_addPeer") do(enode: string) -> bool: server.rpc("nimbus_addPeer") do(enode: string) -> bool:
var res = ENode.fromString(enode) var res = ENode.fromString(enode)
if res.isOk: if res.isOk:
asyncCheck node.peerPool.connectToNode(newNode(res.get())) asyncSpawn node.peerPool.connectToNode(newNode(res.get()))
return true return true
raise (ref InvalidRequest)(code: -32602, msg: "Invalid ENode") raise (ref InvalidRequest)(code: -32602, msg: "Invalid ENode")