example/net: remove p2p.run()

This commit is contained in:
Dastan-glitch
2023-08-25 04:33:53 +03:00
parent 33c3bd2590
commit 83bf68bd49

View File

@@ -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(())
}