accounts/keystore: use mutex instead of rwmutex

This commit is contained in:
Marius van der Wijden 2020-04-16 10:48:23 +02:00
parent abce8e55e7
commit be4cda101c

View file

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