mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 09:23:48 +00:00
accounts/keystore: fix cache update, removed platform specific code
This commit is contained in:
parent
599ba6032e
commit
6407276e7f
1 changed files with 1 additions and 2 deletions
|
|
@ -23,7 +23,6 @@ import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
@ -262,7 +261,7 @@ func (fc *fileCache) scanFiles(keyDir string) (set.Interface, set.Interface, set
|
||||||
}
|
}
|
||||||
filesNow.Add(path)
|
filesNow.Add(path)
|
||||||
// on macOS, we get FS notifications before the actual modTime is updated
|
// on macOS, we get FS notifications before the actual modTime is updated
|
||||||
if modTime.After(prevMtime) || (modTime.Equal(prevMtime) && runtime.GOOS == "darwin") {
|
if modTime.After(prevMtime) || modTime.Equal(prevMtime) {
|
||||||
moddedFiles.Add(path)
|
moddedFiles.Add(path)
|
||||||
}
|
}
|
||||||
if modTime.After(newMtime) {
|
if modTime.After(newMtime) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue