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.
2 parents 0f184d3 + e2b3a23 commit 7b95ccaCopy full SHA for 7b95cca
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