Skip to content

Commit bb206bc

Browse files
committed
swarm/CHANGELOG: Add entry for NetworkBehaviour callbacks
1 parent 7779b8e commit bb206bc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

swarm/CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@
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

0 commit comments

Comments
 (0)