Skip to content

Commit

Permalink
Don't require write lock when fetching status. (openethereum#8481)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomusdrw authored and VladLupashevskyi committed May 23, 2018
1 parent c1a534b commit eb9fcbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethcore/sync/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb9fcbe

Please sign in to comment.