mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-02-22 09:38:18 +00:00
add mounted protos to identify message (#546)
This commit is contained in:
parent
a8d161bc9a
commit
6b1fd79556
@ -132,6 +132,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…
x
Reference in New Issue
Block a user