From fa261ebd02906df6f25d79ce9c8fd597184cf680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Wed, 25 Apr 2018 15:39:46 +0200 Subject: [PATCH] Don't require write lock when fetching status. (#8481) --- ethcore/sync/src/api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethcore/sync/src/api.rs b/ethcore/sync/src/api.rs index 6270bcfd5..c66a1c6a6 100644 --- a/ethcore/sync/src/api.rs +++ b/ethcore/sync/src/api.rs @@ -318,7 +318,7 @@ impl EthSync { impl SyncProvider for EthSync { /// Get sync status fn status(&self) -> EthSyncStatus { - self.eth_handler.sync.write().status() + self.eth_handler.sync.read().status() } /// Get sync peers