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:
Max Inden 2023-05-25 07:44:54 +02:00 committed by GitHub
parent 67b26cce4f
commit fc386a51a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 11 deletions

View File

@ -104,7 +104,7 @@ fn main() -> Result<(), Box<dyn Error>> {
.boxed(); .boxed();
#[derive(NetworkBehaviour)] #[derive(NetworkBehaviour)]
#[behaviour(to_swarm = "Event", event_process = false)] #[behaviour(to_swarm = "Event")]
struct Behaviour { struct Behaviour {
relay_client: relay::client::Behaviour, relay_client: relay::client::Behaviour,
ping: ping::Behaviour, ping: ping::Behaviour,

View File

@ -136,11 +136,7 @@ fn build_client() -> Swarm<Client> {
} }
#[derive(NetworkBehaviour)] #[derive(NetworkBehaviour)]
#[behaviour( #[behaviour(to_swarm = "ClientEvent", prelude = "libp2p_swarm::derive_prelude")]
to_swarm = "ClientEvent",
event_process = false,
prelude = "libp2p_swarm::derive_prelude"
)]
struct Client { struct Client {
relay: relay::client::Behaviour, relay: relay::client::Behaviour,
dcutr: dcutr::Behaviour, dcutr: dcutr::Behaviour,

View File

@ -37,11 +37,7 @@ fn create_swarm() -> Result<Swarm<Behaviour>> {
} }
#[derive(NetworkBehaviour, Default)] #[derive(NetworkBehaviour, Default)]
#[behaviour( #[behaviour(to_swarm = "Event", prelude = "libp2p_swarm::derive_prelude")]
to_swarm = "Event",
event_process = false,
prelude = "libp2p_swarm::derive_prelude"
)]
struct Behaviour { struct Behaviour {
ping: ping::Behaviour, ping: ping::Behaviour,
keep_alive: keep_alive::Behaviour, keep_alive: keep_alive::Behaviour,