فهرست منبع

dnetview: don't exit poll() when error is returned

lunar-mining 4 سال پیش
والد
کامیت
85b601b121
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      bin/dnetview/src/main.rs

+ 2 - 2
bin/dnetview/src/main.rs

@@ -125,8 +125,8 @@ async fn poll_and_update_model(
     for node in &config.nodes {
         info!("Attempting to poll {}, RPC URL: {}", node.name, node.rpc_url);
         match DnetView::new(Url::parse(&node.rpc_url)?, node.name.clone()).await {
-            Ok(client) => return Ok(ex.spawn(poll(client, model.clone())).detach()),
-            Err(e) => return Err(DnetViewError::Darkfi(e)),
+            Ok(client) => ex.spawn(poll(client, model.clone())).detach(),
+            Err(e) => error!("{}", e),
         }
     }
     Ok(())