add mounted protos to identify message (#546)
This commit is contained in:
parent
03bbdd2261
commit
f7a9d83545
|
@ -288,6 +288,7 @@ proc mount*[T: LPProtocol](s: Switch, proto: T, matcher: Matcher = nil) {.gcsafe
|
||||||
"Protocol has to define a codec string")
|
"Protocol has to define a codec string")
|
||||||
|
|
||||||
s.ms.addHandler(proto.codecs, proto, matcher)
|
s.ms.addHandler(proto.codecs, proto, matcher)
|
||||||
|
s.peerInfo.protocols.add(proto.codec)
|
||||||
|
|
||||||
proc upgradeMonitor(conn: Connection, upgrades: AsyncSemaphore) {.async.} =
|
proc upgradeMonitor(conn: Connection, upgrades: AsyncSemaphore) {.async.} =
|
||||||
## monitor connection for upgrades
|
## monitor connection for upgrades
|
||||||
|
|
Loading…
Reference in New Issue