File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 55 via ` Swarm::behaviour ` and ` Swarm::behaviour_mut ` . Methods on ` Swarm ` can now
66 be accessed directly, e.g. via ` my_swarm.local_peer_id() ` . You may use the
77 command below to transform fully qualified method calls on ` Swarm ` to simple
8- method calls.
8+ method calls [ PR 1995 ] ( https://github.com/libp2p/rust-libp2p/pull/1995 ) .
99
1010 ``` bash
1111 # Go from e.g. `Swarm::local_peer_id(&my_swarm)` to `my_swarm.local_peer_id()`.
1212 grep -RiIl --include \* .rs --exclude-dir target . --exclude-dir .git | xargs sed -i " s/\(libp2p::\)*Swarm::\([a-z_]*\)(&mut \([a-z_0-9]*\), /\3.\2(/g"
1313 ```
14+
15+ - Extend ` NetworkBehaviour ` callbacks, more concretely introducing new `fn
16+ inject_new_listener` and ` fn inject_expired_external_addr` and have ` fn
17+ inject_ {new,expired}_ listen_addr` provide a ` ListenerId` [ PR
18+ 2011] ( https://github.com/libp2p/rust-libp2p/pull/2011 ) .
1419
1520# 0.28.0 [ 2021-03-17]
1621
You can’t perform that action at this time.
0 commit comments