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
No known key found for this signature in database
GPG key ID: 99CD25F39F8F8211
2 changed files with 3 additions and 3 deletions

View file

@ -71,7 +71,7 @@ impl NetAdapter for NetToChainAdapter {
debug!(LOGGER, "Block {} refused by chain: {:?}", bhash, e); debug!(LOGGER, "Block {} refused by chain: {:?}", bhash, e);
} }
if self.syncer.borrow().syncing() { if self.syncing() {
self.syncer.borrow().block_received(bhash); self.syncer.borrow().block_received(bhash);
} }
} }
@ -115,7 +115,7 @@ impl NetAdapter for NetToChainAdapter {
added_hs.len() added_hs.len()
); );
if self.syncer.borrow().syncing() { if self.syncing() {
self.syncer.borrow().headers_received(added_hs); self.syncer.borrow().headers_received(added_hs);
} }
} }

View file

@ -120,7 +120,7 @@ impl Server {
Seeding::None => { Seeding::None => {
warn!( warn!(
LOGGER, LOGGER,
"No seed configured, will stay solo unless connected to" "No seed configured, will stay solo until connected to"
); );
} }
Seeding::List => { Seeding::List => {