This commit is contained in:
Dmitriy Ryajov 2019-09-03 14:40:19 -06:00
parent 93bd7f623c
commit b26d1ac23a
1 changed files with 2 additions and 2 deletions

View File

@ -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))