Explorar el Código

example/net: remove p2p.run()

Dastan-glitch hace 2 años
padre
commit
83bf68bd49
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  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(())
 }