1
0
mirror of https://github.com/go-task/task.git synced 2025-08-08 22:36:57 +02:00

refactor(fsnotifyext): GetChan should return a receive only chan

This commit is contained in:
Teddy Sommavilla
2025-04-22 11:29:58 +02:00
committed by Andrey Nering
parent b4c8f5a0fe
commit 6e524bb2fa

View File

@ -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) channel := make(chan fsnotify.Event)
go func() { go func() {