mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-01-25 08:53:11 +00:00
Strip string concatenation from new code.
This commit is contained in:
parent
739d303ccb
commit
965b3df3e7
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user