diff --git a/examples/dcutr/src/main.rs b/examples/dcutr/src/main.rs index 06269f3c..194dea39 100644 --- a/examples/dcutr/src/main.rs +++ b/examples/dcutr/src/main.rs @@ -104,7 +104,7 @@ fn main() -> Result<(), Box> { .boxed(); #[derive(NetworkBehaviour)] - #[behaviour(to_swarm = "Event", event_process = false)] + #[behaviour(to_swarm = "Event")] struct Behaviour { relay_client: relay::client::Behaviour, ping: ping::Behaviour, diff --git a/protocols/dcutr/tests/lib.rs b/protocols/dcutr/tests/lib.rs index 377f65fb..fedb3299 100644 --- a/protocols/dcutr/tests/lib.rs +++ b/protocols/dcutr/tests/lib.rs @@ -136,11 +136,7 @@ fn build_client() -> Swarm { } #[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, diff --git a/transports/webrtc/examples/listen_ping.rs b/transports/webrtc/examples/listen_ping.rs index 47155bb8..8475195a 100644 --- a/transports/webrtc/examples/listen_ping.rs +++ b/transports/webrtc/examples/listen_ping.rs @@ -37,11 +37,7 @@ fn create_swarm() -> Result> { } #[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,