mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
Update libp2p/network/swarm.py
Co-Authored-By: NIC Lin <twedusuck@gmail.com>
This commit is contained in:
committed by
GitHub
parent
cec2aea928
commit
1e59438f25
@ -32,7 +32,7 @@ class Swarm(INetwork):
|
|||||||
upgrader: TransportUpgrader
|
upgrader: TransportUpgrader
|
||||||
transport: ITransport
|
transport: ITransport
|
||||||
router: IPeerRouting
|
router: IPeerRouting
|
||||||
# TODO: Connections an `peer_id` are 1-1 mapping in our implementation,
|
# TODO: Connection and `peer_id` are 1-1 mapping in our implementation,
|
||||||
# whereas in Go one `peer_id` may point to multiple connections.
|
# whereas in Go one `peer_id` may point to multiple connections.
|
||||||
connections: Dict[ID, IMuxedConn]
|
connections: Dict[ID, IMuxedConn]
|
||||||
listeners: Dict[str, IListener]
|
listeners: Dict[str, IListener]
|
||||||
|
|||||||
Reference in New Issue
Block a user