Use local ref to syncing

This commit is contained in:
Ignotus Peverell 2017-10-17 13:55:12 +00:00
parent 28ac46c563
commit 4fa7f34b7e
No known key found for this signature in database
GPG key ID: 99CD25F39F8F8211

View file

@ -244,7 +244,7 @@ impl NetToChainAdapter {
/// Prepare options for the chain pipeline
fn chain_opts(&self) -> chain::Options {
let opts = if self.syncer.borrow().syncing() {
let opts = if self.syncing() {
chain::SYNC
} else {
chain::NONE