Skip to content

Commit 8e0d7d8

Browse files
Add changelog entry to swarm
1 parent 08c5160 commit 8e0d7d8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

swarm/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,18 @@
1515
- Remove type parameter from `PendingOutboundConnectionError` and `PendingInboundConnectionError`.
1616
These two types are always used with `std::io::Error`. See [PR 3272].
1717

18+
- Remove `handler` field from `NetworkBehaviourAction::Dial`.
19+
Instead of constructing the handler early, you now get to pass a `ConnectionId`.
20+
`ConnectionId` are `Copy` and will be used throughout the entire lifetime of the connection to report events.
21+
This allows you to send events to a very specific connection, much like you previously could directly set state in the handler.
22+
See [PR 3328].
23+
1824
[PR 3170]: https://github.com/libp2p/rust-libp2p/pull/3170
1925
[PR 3134]: https://github.com/libp2p/rust-libp2p/pull/3134
2026
[PR 3153]: https://github.com/libp2p/rust-libp2p/pull/3153
2127
[PR 3264]: https://github.com/libp2p/rust-libp2p/pull/3264
2228
[PR 3272]: https://github.com/libp2p/rust-libp2p/pull/3272
29+
[PR 3328]: https://github.com/libp2p/rust-libp2p/pull/3328
2330

2431
# 0.41.1
2532

0 commit comments

Comments
 (0)