File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 9
9
- Add ` estblished_in ` to ` SwarmEvent::ConnectionEstablished ` . See [ PR 3134] .
10
10
11
11
- Remove deprecated ` inject_* ` methods from ` NetworkBehaviour ` and ` ConnectionHandler ` .
12
- see [ PR 3264] .
12
+ Make the implementation of ` on_swarm_event ` and ` on_connection_handler_event `
13
+ both mandatory. See [ PR 3264] and [ PR 3364] .
13
14
14
15
- Update to ` libp2p-swarm-derive ` ` v0.32.0 ` .
15
16
16
17
- Remove type parameter from ` PendingOutboundConnectionError ` and ` PendingInboundConnectionError ` .
17
18
These two types are always used with ` std::io::Error ` . See [ PR 3272] .
18
19
19
- - Replace ` SwarmBuilder::connection_event_buffer_size ` with ` SwarmBuilder::per_connection_event_buffer_size ` .
20
+ - Replace ` SwarmBuilder::connection_event_buffer_size ` with ` SwarmBuilder::per_connection_event_buffer_size ` .
20
21
The configured value now applies _ per_ connection.
21
22
The default values remains 7.
22
23
If you have previously set ` connection_event_buffer_size ` you should re-evaluate what a good size for a _ per connection_ buffer is.
23
24
See [ PR 3188] .
24
25
25
- - Remove ` ConnectionId::new ` . Manually creating ` ConnectionId ` s is now unsupported. See [ PR 3327] .
26
-
26
+ [ PR 3364 ] : https://github.com/libp2p/rust-libp2p/pull/3364
27
27
[ PR 3170 ] : https://github.com/libp2p/rust-libp2p/pull/3170
28
28
[ PR 3134 ] : https://github.com/libp2p/rust-libp2p/pull/3134
29
29
[ PR 3153 ] : https://github.com/libp2p/rust-libp2p/pull/3153
Original file line number Diff line number Diff line change @@ -172,8 +172,7 @@ pub trait NetworkBehaviour: 'static {
172
172
_connection_id : ConnectionId ,
173
173
_event : <<Self :: ConnectionHandler as IntoConnectionHandler >:: Handler as
174
174
ConnectionHandler >:: OutEvent ,
175
- ) {
176
- }
175
+ ) ;
177
176
178
177
/// Polls for things that swarm should do.
179
178
///
You can’t perform that action at this time.
0 commit comments