We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f184d3 commit e2b3a23Copy full SHA for e2b3a23
accounts/keystore/watch.go
@@ -81,10 +81,14 @@ func (w *watcher) loop() {
81
// When an event occurs, the reload call is delayed a bit so that
82
// multiple events arriving quickly only cause a single reload.
83
var (
84
- debounce = time.NewTimer(0)
85
debounceDuration = 500 * time.Millisecond
86
rescanTriggered = false
+ debounce = time.NewTimer(0)
87
)
88
+ // Ignore initial trigger
89
+ if !debounce.Stop() {
90
+ <-debounce.C
91
+ }
92
defer debounce.Stop()
93
for {
94
select {
0 commit comments