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:
committed by
Andrey Nering
parent
b4c8f5a0fe
commit
6e524bb2fa
@ -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() {
|
||||||
|
Reference in New Issue
Block a user