diff options
| author | RanXom <saiyedshizain@gmail.com> | 2026-07-17 10:33:58 +0530 |
|---|---|---|
| committer | RanXom <saiyedshizain@gmail.com> | 2026-07-17 10:39:01 +0530 |
| commit | c8a8431158f07b75adc1fd86b344790075b9cf7a (patch) | |
| tree | 75dee979cab349df15f2b1c260c3f8d758770c2e /internal/watcher/watcher.go | |
| parent | 9eb299c3ac08e2bea4dfe9e3355178566bcf0501 (diff) | |
| download | galleryd-c8a8431158f07b75adc1fd86b344790075b9cf7a.tar.xz galleryd-c8a8431158f07b75adc1fd86b344790075b9cf7a.zip | |
refactor(watcher): buffer debounce notifications
Diffstat (limited to 'internal/watcher/watcher.go')
| -rw-r--r-- | internal/watcher/watcher.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/watcher/watcher.go b/internal/watcher/watcher.go index ee16b7b..303eced 100644 --- a/internal/watcher/watcher.go +++ b/internal/watcher/watcher.go @@ -15,6 +15,6 @@ func New(config Config) *Watcher { return &Watcher{ config: config, - debounce: make(chan struct{}), + debounce: make(chan struct{}, 1), } } |