diff --git a/libp2p/protocol.nim b/libp2p/protocol.nim index 1daa17fd6..a4c8c05ab 100644 --- a/libp2p/protocol.nim +++ b/libp2p/protocol.nim @@ -17,14 +17,7 @@ type Future[void] {.gcsafe, closure.} LPProtocol* = ref object of RootObj - peerInfo*: PeerInfo codec*: string handler*: LPProtoHandler ## this handler gets invoked by the protocol negotiator -proc newProtocol*(p: typedesc[LPProtocol], - peerInfo: PeerInfo): p = - new result - result.peerInfo = peerInfo - result.init() - method init*(p: LPProtocol) {.base, gcsafe.} = discard