Skip to content

Commit 19491c9

Browse files
authored
feat: implement relay and rendezvous peer discovery based on identify (#11)
* feat: implement relay and rendezvous peer discovery based on identify, setup kad with boot node
1 parent 961e92f commit 19491c9

File tree

12 files changed

+705
-307
lines changed

12 files changed

+705
-307
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/chat/Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "chat-example"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
authors = ["Calimero Limited <info@calimero.network>"]
55
edition = "2021"
66
repository = "https://github.com/calimero-network/boot-node"
@@ -14,6 +14,7 @@ libp2p = { version = "0.53.2", features = [
1414
"dns",
1515
"gossipsub",
1616
"identify",
17+
"kad",
1718
"macros",
1819
"mdns",
1920
"noise",

examples/chat/src/main.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ async fn main() -> eyre::Result<()> {
7070
let (network_client, mut network_events) = network::run(
7171
keypair.clone(),
7272
opt.port,
73+
opt.boot_nodes,
7374
libp2p::rendezvous::Namespace::new(opt.rendezvous_namespace)?,
74-
opt.boot_nodes.clone(),
75-
opt.boot_nodes.clone(),
7675
)
7776
.await?;
7877

0 commit comments

Comments
 (0)