Skip to content

Commit

Permalink
Increase debounce interval to prevent double-builds.
Browse files Browse the repository at this point in the history
With one of my services I'm testing with, I noticed that the service
would sometimes be restarted twice, for one file-change. Doubling the
debounce interval seems to fix the issue.
  • Loading branch information
katzdm committed Apr 20, 2019
1 parent 72b52a5 commit 2549ad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/watch/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

var log = logging.MustGetLogger("watch")

const debounceInterval = 50 * time.Millisecond
const debounceInterval = 100 * time.Millisecond

// A CallbackFunc is supplied to Watch in order to trigger a build.
type CallbackFunc func(*core.BuildState, []core.BuildLabel)
Expand Down

0 comments on commit 2549ad6

Please sign in to comment.