Skip to content

Commit

Permalink
deps(dev): update libp2p to 0.53
Browse files Browse the repository at this point in the history
Signed-off-by: ljedrz <[email protected]>
  • Loading branch information
ljedrz committed Nov 7, 2023
1 parent 793c204 commit 9a24e9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ tracing = { version = "0.1", default-features = false }
[dev-dependencies]
bincode = "1"
deadline = "0.2"
libp2p = { version = "0.52", default-features = false, features = ["macros", "noise", "ping", "tcp", "tokio", "yamux"] }
libp2p = { version = "0.53", default-features = false, features = ["macros", "noise", "ping", "tcp", "tokio", "yamux"] }
native-tls = "0.2"
once_cell = { version = "1", features = ["parking_lot"] }
peak_alloc = "0.2"
Expand All @@ -45,5 +45,5 @@ test-cert-gen = "0.9"
tokio = { version = "1.24", features = ["macros", "rt-multi-thread"] }
tokio-native-tls = "0.3"
tracing-subscriber = { version = "0.3", default-features = false, features = ["ansi", "env-filter", "fmt", "parking_lot", "smallvec"] }
unsigned-varint = { version = "0.7", features = ["codec", "futures"] }
unsigned-varint = { version = "0.8", features = ["codec", "futures"] }
pea2pea = { path = ".", features = ["test"] } # a workaround to use the `test` feature in tests by default
10 changes: 1 addition & 9 deletions examples/libp2p.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ use bytes::{Bytes, BytesMut};
use common::{noise, yamux};
use futures_util::{SinkExt, StreamExt, TryStreamExt};
use libp2p::{core::multiaddr::Protocol, identity, ping, PeerId};
use libp2p::{
swarm::{NetworkBehaviour, SwarmEvent},
SwarmBuilder,
};
use libp2p::{swarm::SwarmEvent, SwarmBuilder};
use parking_lot::{Mutex, RwLock};
use pea2pea::{
protocols::{Handshake, OnDisconnect, Reading, Writing},
Expand Down Expand Up @@ -476,11 +473,6 @@ impl OnDisconnect for Libp2pNode {
}
}

#[derive(NetworkBehaviour, Default)]
struct Behaviour {
ping: ping::Behaviour,
}

#[tokio::main(flavor = "multi_thread")]
async fn main() {
common::start_logger(LevelFilter::DEBUG);
Expand Down

0 comments on commit 9a24e9f

Please sign in to comment.