Skip to content

Commit

Permalink
fix: remove obsolete event_process = false
Browse files Browse the repository at this point in the history
The `libp2p-swarm-derive` `event_process` option was removed in #2840.

Pull-Request: #3984.
  • Loading branch information
mxinden authored May 25, 2023
1 parent 67b26cc commit fc386a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion examples/dcutr/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ fn main() -> Result<(), Box<dyn Error>> {
.boxed();

#[derive(NetworkBehaviour)]
#[behaviour(to_swarm = "Event", event_process = false)]
#[behaviour(to_swarm = "Event")]
struct Behaviour {
relay_client: relay::client::Behaviour,
ping: ping::Behaviour,
Expand Down
6 changes: 1 addition & 5 deletions protocols/dcutr/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,7 @@ fn build_client() -> Swarm<Client> {
}

#[derive(NetworkBehaviour)]
#[behaviour(
to_swarm = "ClientEvent",
event_process = false,
prelude = "libp2p_swarm::derive_prelude"
)]
#[behaviour(to_swarm = "ClientEvent", prelude = "libp2p_swarm::derive_prelude")]
struct Client {
relay: relay::client::Behaviour,
dcutr: dcutr::Behaviour,
Expand Down
6 changes: 1 addition & 5 deletions transports/webrtc/examples/listen_ping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ fn create_swarm() -> Result<Swarm<Behaviour>> {
}

#[derive(NetworkBehaviour, Default)]
#[behaviour(
to_swarm = "Event",
event_process = false,
prelude = "libp2p_swarm::derive_prelude"
)]
#[behaviour(to_swarm = "Event", prelude = "libp2p_swarm::derive_prelude")]
struct Behaviour {
ping: ping::Behaviour,
keep_alive: keep_alive::Behaviour,
Expand Down

0 comments on commit fc386a5

Please sign in to comment.