File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 15
15
- Remove type parameter from ` PendingOutboundConnectionError ` and ` PendingInboundConnectionError ` .
16
16
These two types are always used with ` std::io::Error ` . See [ PR 3272] .
17
17
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
+
18
24
[ PR 3170 ] : https://github.com/libp2p/rust-libp2p/pull/3170
19
25
[ PR 3134 ] : https://github.com/libp2p/rust-libp2p/pull/3134
20
26
[ PR 3153 ] : https://github.com/libp2p/rust-libp2p/pull/3153
21
27
[ PR 3264 ] : https://github.com/libp2p/rust-libp2p/pull/3264
22
28
[ PR 3272 ] : https://github.com/libp2p/rust-libp2p/pull/3272
29
+ [ PR 3328 ] : https://github.com/libp2p/rust-libp2p/pull/3328
23
30
24
31
# 0.41.1
25
32
You can’t perform that action at this time.
0 commit comments