From 6e524bb2fac882fba8266fe7288a5d4a01514638 Mon Sep 17 00:00:00 2001 From: Teddy Sommavilla Date: Tue, 22 Apr 2025 11:29:58 +0200 Subject: [PATCH] refactor(fsnotifyext): GetChan should return a receive only chan --- internal/fsnotifyext/fsnotify_dedup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/fsnotifyext/fsnotify_dedup.go b/internal/fsnotifyext/fsnotify_dedup.go index 3c26be66..384ef42b 100644 --- a/internal/fsnotifyext/fsnotify_dedup.go +++ b/internal/fsnotifyext/fsnotify_dedup.go @@ -19,7 +19,7 @@ func NewDeduper(w *fsnotify.Watcher, waitTime time.Duration) *Deduper { } } -func (d *Deduper) GetChan() chan fsnotify.Event { +func (d *Deduper) GetChan() <-chan fsnotify.Event { channel := make(chan fsnotify.Event) go func() {