From 4fa7f34b7eca013c09e7f452dae0bb6c1e455735 Mon Sep 17 00:00:00 2001 From: Ignotus Peverell Date: Tue, 17 Oct 2017 13:55:12 +0000 Subject: [PATCH] Use local ref to syncing --- grin/src/adapters.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grin/src/adapters.rs b/grin/src/adapters.rs index 0dee6c055..e018abcd3 100644 --- a/grin/src/adapters.rs +++ b/grin/src/adapters.rs @@ -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