mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-29 10:41:21 +00:00
fix: remove obsolete event_process = false
The `libp2p-swarm-derive` `event_process` option was removed in https://github.com/libp2p/rust-libp2p/pull/2840. Pull-Request: #3984.
This commit is contained in:
parent
67b26cce4f
commit
fc386a51a7
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user