mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
accounts/keystore: use mutex instead of rwmutex
This commit is contained in:
parent
abce8e55e7
commit
be4cda101c
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ type KeyStore struct {
|
||||||
updating bool // Whether the event notification loop is running
|
updating bool // Whether the event notification loop is running
|
||||||
|
|
||||||
mu sync.RWMutex
|
mu sync.RWMutex
|
||||||
importMu sync.RWMutex // Import Mutex locks the import to prevent two insertions from racing
|
importMu sync.Mutex // Import Mutex locks the import to prevent two insertions from racing
|
||||||
}
|
}
|
||||||
|
|
||||||
type unlocked struct {
|
type unlocked struct {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue