all: replace RWMutex with Mutex in places where RLock is not used (#21622)

This commit is contained in:
mr_franklin
2020-10-13 16:58:41 +08:00
committed by GitHub
parent 32341f88e3
commit c37e68e7c1
6 changed files with 6 additions and 7 deletions

View File

@ -32,7 +32,7 @@ import (
type fileCache struct {
all mapset.Set // Set of all files from the keystore folder
lastMod time.Time // Last time instance when a file was modified
mu sync.RWMutex
mu sync.Mutex
}
// scan performs a new scan on the given directory, compares against the already