diff --git a/backend/src/feed/connector.rs b/backend/src/feed/connector.rs index 2756eed..e58fc2a 100644 --- a/backend/src/feed/connector.rs +++ b/backend/src/feed/connector.rs @@ -88,12 +88,13 @@ impl FeedConnector { feed: ctx.address(), }) .into_actor(self) - .then(|res, act, _| { + .then(|res, actor, _| { match res { Ok(true) => (), - _ => act.chain_hash = 0, + // Chain not found, reset hash + _ => actor.chain_hash = 0, } - async {}.into_actor(act) + async {}.into_actor(actor) }) .wait(ctx); } diff --git a/backend/src/main.rs b/backend/src/main.rs index 9b27add..016e9bb 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -1,6 +1,3 @@ -// #[macro_use] -// extern crate log; - use std::net::Ipv4Addr; use actix::prelude::*;