Use local ref to syncing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user