mirror of
https://github.com/codex-storage/nim-codex-dht.git
synced 2025-01-09 19:35:45 +00:00
remove unused sendRequest call
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
148b10908d
commit
4c9c92232b
@ -455,16 +455,6 @@ proc replaceNode(d: Protocol, n: Node) =
|
|||||||
# peers in the routing table.
|
# peers in the routing table.
|
||||||
debug "Message request to bootstrap node failed", src=d.localNode, dst=n
|
debug "Message request to bootstrap node failed", src=d.localNode, dst=n
|
||||||
|
|
||||||
proc sendRequest*[T: SomeMessage](d: Protocol, toId: NodeId, toAddr: Address, m: T,
|
|
||||||
reqId: RequestId) =
|
|
||||||
let
|
|
||||||
message = encodeMessage(m, reqId)
|
|
||||||
|
|
||||||
trace "Send message packet", dstId = toId, toAddr, kind = messageKind(T)
|
|
||||||
discovery_message_requests_outgoing.inc()
|
|
||||||
|
|
||||||
d.transport.sendMessage(toId, toAddr, message)
|
|
||||||
|
|
||||||
proc sendRequest*[T: SomeMessage](d: Protocol, toNode: Node, m: T,
|
proc sendRequest*[T: SomeMessage](d: Protocol, toNode: Node, m: T,
|
||||||
reqId: RequestId) =
|
reqId: RequestId) =
|
||||||
doAssert(toNode.address.isSome())
|
doAssert(toNode.address.isSome())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user