From 84ffef97878d50a1decab84456f81ee37f670884 Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Mon, 4 Sep 2023 14:37:53 +0200 Subject: [PATCH] remove unused sendRequest call Signed-off-by: Csaba Kiraly --- libp2pdht/private/eth/p2p/discoveryv5/protocol.nim | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim b/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim index 5bcf9a6..db8ac6a 100644 --- a/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim +++ b/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim @@ -519,16 +519,6 @@ proc replaceNode(d: Protocol, n: Node) = # peers in the routing table. 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, reqId: RequestId) = doAssert(toNode.address.isSome())