fixes related to nim-json-rpc bump
This commit is contained in:
parent
dcd86bb221
commit
f051c2530e
|
@ -234,7 +234,7 @@ proc start(nimbus: NimbusNode, conf: NimbusConf) =
|
||||||
proc stop*(nimbus: NimbusNode, conf: NimbusConf) {.async, gcsafe.} =
|
proc stop*(nimbus: NimbusNode, conf: NimbusConf) {.async, gcsafe.} =
|
||||||
trace "Graceful shutdown"
|
trace "Graceful shutdown"
|
||||||
if conf.rpcEnabled:
|
if conf.rpcEnabled:
|
||||||
nimbus.rpcServer.stop()
|
await nimbus.rpcServer.stop()
|
||||||
if conf.wsEnabled:
|
if conf.wsEnabled:
|
||||||
nimbus.wsRpcServer.stop()
|
nimbus.wsRpcServer.stop()
|
||||||
if conf.graphqlEnabled:
|
if conf.graphqlEnabled:
|
||||||
|
|
|
@ -20,8 +20,8 @@ type
|
||||||
|
|
||||||
proc request*(methodName: string, params: JsonNode): JsonNode =
|
proc request*(methodName: string, params: JsonNode): JsonNode =
|
||||||
var client = newRpcHttpClient()
|
var client = newRpcHttpClient()
|
||||||
client.httpMethod(MethodPost)
|
#client.httpMethod(MethodPost)
|
||||||
waitFor client.connect("127.0.0.1", Port(8545))
|
waitFor client.connect("127.0.0.1", Port(8545), false)
|
||||||
result = waitFor client.call(methodName, params)
|
result = waitFor client.call(methodName, params)
|
||||||
waitFor client.close()
|
waitFor client.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue