From 19d313c16c1383aaa314294ff50614bc0c80a367 Mon Sep 17 00:00:00 2001 From: Max Inden Date: Sat, 19 Oct 2019 16:21:36 +0200 Subject: [PATCH] examples/ipfs-kad.rs: Remove outdated reference to `without_init` (#1280) --- examples/ipfs-kad.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/examples/ipfs-kad.rs b/examples/ipfs-kad.rs index 26eb6fb5..7ee1f88e 100644 --- a/examples/ipfs-kad.rs +++ b/examples/ipfs-kad.rs @@ -48,10 +48,6 @@ fn main() { // Create a swarm to manage peers and events. let mut swarm = { // Create a Kademlia behaviour. - // Note that normally the Kademlia process starts by performing lots of request in order - // to insert our local node in the DHT. However here we use `without_init` because this - // example is very ephemeral and we don't want to pollute the DHT. In a real world - // application, you want to use `new` instead. let mut cfg = KademliaConfig::default(); cfg.set_query_timeout(Duration::from_secs(5 * 60)); let store = MemoryStore::new(local_peer_id.clone());