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
1 changed files with 1 additions and 1 deletions

View File

@ -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