Don't require write lock when fetching status. (#8481)
This commit is contained in:
parent
7fdb87ad38
commit
fa261ebd02
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user