Clean unnecessary changes and comments

This commit is contained in:
Maciej Hirsz
2020-09-29 19:20:53 +02:00
parent 9e4a0d938e
commit b55dfa022a
2 changed files with 4 additions and 6 deletions
+4 -3
View File
@@ -88,12 +88,13 @@ impl FeedConnector {
feed: ctx.address(), feed: ctx.address(),
}) })
.into_actor(self) .into_actor(self)
.then(|res, act, _| { .then(|res, actor, _| {
match res { match res {
Ok(true) => (), 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); .wait(ctx);
} }
-3
View File
@@ -1,6 +1,3 @@
// #[macro_use]
// extern crate log;
use std::net::Ipv4Addr; use std::net::Ipv4Addr;
use actix::prelude::*; use actix::prelude::*;