Parcourir la source

example/net: remove p2p.run()

Dastan-glitch il y a 2 ans
Parent
commit
83bf68bd49
1 fichiers modifiés avec 0 ajouts et 1 suppressions
  1. 0 1
      example/net.rs

+ 0 - 1
example/net.rs

@@ -32,7 +32,6 @@ async fn start(executor: Arc<Executor<'static>>, options: ProgramOptions) -> Res
     let p2p = net::P2p::new(options.network_settings, executor.clone()).await;
 
     p2p.clone().start().await?;
-    p2p.run().await?;
 
     Ok(())
 }