Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Don't require write lock when fetching status. (#8481)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomusdrw authored and 5chdn committed Apr 25, 2018
1 parent 7fdb87a commit fa261eb
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 fa261eb

Please sign in to comment.