Don't require write lock when fetching status. (#8481)

This commit is contained in:
Tomasz Drwięga 2018-04-25 15:39:46 +02:00 committed by Afri Schoedon
parent 7fdb87ad38
commit fa261ebd02

View File

@ -318,7 +318,7 @@ impl EthSync {
impl SyncProvider for EthSync { impl SyncProvider for EthSync {
/// Get sync status /// Get sync status
fn status(&self) -> EthSyncStatus { fn status(&self) -> EthSyncStatus {
self.eth_handler.sync.write().status() self.eth_handler.sync.read().status()
} }
/// Get sync peers /// Get sync peers