From b26d1ac23a640aa290fe93d735c03c33d12ec72c Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Tue, 3 Sep 2019 14:40:19 -0600 Subject: [PATCH] cosmetic --- libp2p/multistream.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libp2p/multistream.nim b/libp2p/multistream.nim index d62abf492..eced19345 100644 --- a/libp2p/multistream.nim +++ b/libp2p/multistream.nim @@ -106,10 +106,10 @@ proc handle*(m: MultisteamSelect, conn: Connection) {.async, gcsafe.} = await conn.write(m.na) proc addHandler*[T: LPProtocol](m: MultisteamSelect, - proto: string, + codec: string, protocol: T, matcher: Matcher = nil) = ## register a handler for the protocol - m.handlers.add(HandlerHolder(proto: proto, + m.handlers.add(HandlerHolder(proto: codec, protocol: protocol, match: matcher))