From be4cda101c86454e32e501e2f0d720863c19cdb5 Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Thu, 16 Apr 2020 10:48:23 +0200 Subject: [PATCH] accounts/keystore: use mutex instead of rwmutex --- accounts/keystore/keystore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/keystore/keystore.go b/accounts/keystore/keystore.go index a72da97941..a27d80e900 100644 --- a/accounts/keystore/keystore.go +++ b/accounts/keystore/keystore.go @@ -68,7 +68,7 @@ type KeyStore struct { updating bool // Whether the event notification loop is running 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 {