Skip to content

Commit

Permalink
fix(libp2p): added back keep alive
Browse files Browse the repository at this point in the history
  • Loading branch information
gurinderu committed May 16, 2023
1 parent 0047edf commit 05f51f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions particle-node/src/behaviour/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use libp2p::{
ping::{Behaviour as Ping, Config as PingConfig},
swarm::NetworkBehaviour,

Check warning on line 20 in particle-node/src/behaviour/network.rs

View workflow job for this annotation

GitHub Actions / rust-peer / cargo nextest

Diff in /opt/actions-runner/_work/rust-peer/rust-peer/particle-node/src/behaviour/network.rs
};
use libp2p::swarm::keep_alive::Behaviour as KeepAlive;
use tokio::sync::mpsc;

use connection_pool::ConnectionPoolBehaviour;
Expand All @@ -31,6 +32,7 @@ use crate::connectivity::Connectivity;
/// Coordinates protocols, so they can cooperate
#[derive(NetworkBehaviour)]
pub struct FluenceNetworkBehaviour {
keep_alive: KeepAlive,
identify: Identify,
ping: Ping,
pub(crate) connection_pool: ConnectionPoolBehaviour,
Expand Down Expand Up @@ -59,7 +61,10 @@ impl FluenceNetworkBehaviour {
cfg.connection_pool_metrics,
);

let keep_alive = KeepAlive::default();

let this = Self {
keep_alive,
kademlia,
connection_pool,
identify,
Expand Down

0 comments on commit 05f51f8

Please sign in to comment.