mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-27 00:31:35 +00:00
examples/ipfs-kad.rs: Remove outdated reference to without_init
(#1280)
This commit is contained in:
committed by
Roman Borschel
parent
af61f1fd04
commit
19d313c16c
@ -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());
|
||||
|
Reference in New Issue
Block a user