From 965b3df3e76b0450b308122ee63307bdc24b1871 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Thu, 7 Jun 2018 19:45:10 +0300 Subject: [PATCH] Strip string concatenation from new code. --- eth-rpc/client.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth-rpc/client.nim b/eth-rpc/client.nim index 46bc0d7..da6850a 100644 --- a/eth-rpc/client.nim +++ b/eth-rpc/client.nim @@ -95,7 +95,7 @@ proc connect*(self: RpcClient, address: string, port: Port) {.async.} = # TODO: `address` hostname can be resolved to many IP addresses, we are using # first one, but maybe it would be better to iterate over all IP addresses # and try to establish connection until it will not be established. - let addresses = resolveTAddress(address & ":" & $int(port)) + let addresses = resolveTAddress(address, port) self.transp = await connect(addresses[0]) self.address = addresses[0] asyncCheck processData(self)