Skip to content

Commit

Permalink
feat: implement relay and rendezvous peer discovery based on identify (
Browse files Browse the repository at this point in the history
…#11)

* feat:  implement relay and rendezvous peer discovery based on identify, setup kad with boot node
  • Loading branch information
fbozic authored May 31, 2024
1 parent 961e92f commit 19491c9
Show file tree
Hide file tree
Showing 12 changed files with 705 additions and 307 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion examples/chat/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "chat-example"
version = "0.2.0"
version = "0.3.0"
authors = ["Calimero Limited <info@calimero.network>"]
edition = "2021"
repository = "https://github.com/calimero-network/boot-node"
Expand All @@ -14,6 +14,7 @@ libp2p = { version = "0.53.2", features = [
"dns",
"gossipsub",
"identify",
"kad",
"macros",
"mdns",
"noise",
Expand Down
3 changes: 1 addition & 2 deletions examples/chat/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@ async fn main() -> eyre::Result<()> {
let (network_client, mut network_events) = network::run(
keypair.clone(),
opt.port,
opt.boot_nodes,
libp2p::rendezvous::Namespace::new(opt.rendezvous_namespace)?,
opt.boot_nodes.clone(),
opt.boot_nodes.clone(),
)
.await?;

Expand Down
Loading

0 comments on commit 19491c9

Please sign in to comment.