use more readable substr call
This commit is contained in:
parent
aa5f437093
commit
f22bd5eacc
|
@ -67,7 +67,7 @@ proc handleServerMessages(connection: ServerConnection) {.async.} =
|
|||
connection.outMessages.del(args[1])
|
||||
future.fail(newException(ServerError, args[2]))
|
||||
of "notify-peer":
|
||||
asyncCheck connection.peerNotifications.write(&"{args[1]}|{args[2]}")
|
||||
asyncCheck connection.peerNotifications.write(line.substr(args[0].len + 1))
|
||||
else:
|
||||
raise newException(ValueError, "invalid server message")
|
||||
|
||||
|
|
Loading…
Reference in New Issue