소스 검색

example/net: remove p2p.run()

Dastan-glitch 3 년 전
부모
커밋
83bf68bd49
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  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(())
 }