Просмотр исходного кода

doc: add missing lines in prev commit

x 3 лет назад
Родитель
Сommit
1575d21f6c
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      doc/src/architecture/services.md

+ 3 - 0
doc/src/architecture/services.md

@@ -56,10 +56,13 @@ impl P2p {
 
     pub async fn start(self: Arc<Self>) -> Result<()> {
         // ...
+        self.session_outbound().await.start().await;
         Ok(())
     }
 
     pub async fn stop(&self) {
+        self.session_outbound().await.stop().await;
+        // ...
     }
 }
 ```