Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
swarm/behaviour: Document inject_connected called for first only (#1954)
`NetworkBehaviour::inject_connected` is called for the first established connection to a peer only. See `swarm/src/lib.rs`: ```rust this.behaviour.inject_connection_established(&peer_id, &connection.id(), &endpoint); if num_established.get() == 1 { this.behaviour.inject_connected(&peer_id); } ``` This commit adjusts the documentation accordingly.
- Loading branch information