Clean up last 2 refs to syncing from adapter

This commit is contained in:
Ignotus Peverell
2017-10-17 14:06:18 +00:00
parent affec50588
commit 42ff6c2f6b
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -71,7 +71,7 @@ impl NetAdapter for NetToChainAdapter {
debug!(LOGGER, "Block {} refused by chain: {:?}", bhash, e);
}
if self.syncer.borrow().syncing() {
if self.syncing() {
self.syncer.borrow().block_received(bhash);
}
}
@@ -115,7 +115,7 @@ impl NetAdapter for NetToChainAdapter {
added_hs.len()
);
if self.syncer.borrow().syncing() {
if self.syncing() {
self.syncer.borrow().headers_received(added_hs);
}
}
+1 -1
View File
@@ -120,7 +120,7 @@ impl Server {
Seeding::None => {
warn!(
LOGGER,
"No seed configured, will stay solo unless connected to"
"No seed configured, will stay solo until connected to"
);
}
Seeding::List => {