Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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