diff --git a/networking-flow.md b/networking-flow.md index d6651c3..2f72b93 100644 --- a/networking-flow.md +++ b/networking-flow.md @@ -104,6 +104,11 @@ vendor/nim-libp2p/libp2p/switch.nim: - Switch.indentify(Connection) - awaits Identify.indentify(Connection, PeerInfo) +- Switch.subscribeToPeer(PeerInfo) + - awaits PubSub.subscribeToPeer(Connection) + +## identify + vendor/nim-libp2p/libp2p/protocols/identify.nim: - Identify.indentify(Connection, PeerInfo) @@ -114,9 +119,6 @@ vendor/nim-libp2p/libp2p/protocols/identify.nim: - calls initProtoBuffer(buf) - calls ProtoBuffer.getValue(), ProtoBuffer.getBytes() and ProtoBuffer.getString() to decode the message -- Switch.subscribeToPeer(PeerInfo) - - awaits PubSub.subscribeToPeer(Connection) - ## multistream vendor/nim-libp2p/libp2p/multistream.nim: