From b55dfa022aa2a2d5e87255ef63a4313faf953b94 Mon Sep 17 00:00:00 2001 From: Maciej Hirsz Date: Tue, 29 Sep 2020 19:20:53 +0200 Subject: [PATCH] Clean unnecessary changes and comments --- backend/src/feed/connector.rs | 7 ++++--- backend/src/main.rs | 3 --- 2 files changed, 4 insertions(+), 6 deletions(-) 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::*;