mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "cmd/clef: suppress fsnotify error if keydir not exists (#28160)"
This reverts commit 6e0c4dea27.
This commit is contained in:
parent
1dc81562d1
commit
e1227d3578
1 changed files with 1 additions and 4 deletions
|
|
@ -20,7 +20,6 @@
|
||||||
package keystore
|
package keystore
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/log"
|
"github.com/ethereum/go-ethereum/log"
|
||||||
|
|
@ -78,9 +77,7 @@ func (w *watcher) loop() {
|
||||||
}
|
}
|
||||||
defer watcher.Close()
|
defer watcher.Close()
|
||||||
if err := watcher.Add(w.ac.keydir); err != nil {
|
if err := watcher.Add(w.ac.keydir); err != nil {
|
||||||
if !os.IsNotExist(err) {
|
logger.Warn("Failed to watch keystore folder", "err", err)
|
||||||
logger.Warn("Failed to watch keystore folder", "err", err)
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue