diff --git a/pkg/watch/debounce.go b/pkg/watch/debounce.go index 76d0797b9..684054b5c 100644 --- a/pkg/watch/debounce.go +++ b/pkg/watch/debounce.go @@ -25,7 +25,7 @@ import ( const QuietPeriod = 500 * time.Millisecond -// batchDebounceEvents groups identical file events within a sliding time window and writes the results to the returned +// BatchDebounceEvents groups identical file events within a sliding time window and writes the results to the returned // channel. // // The returned channel is closed when the debouncer is stopped via context cancellation or by closing the input channel. diff --git a/pkg/watch/temp.go b/pkg/watch/temp.go index 4e5c52535..011f547c1 100644 --- a/pkg/watch/temp.go +++ b/pkg/watch/temp.go @@ -31,7 +31,7 @@ func NewDir(prefix string) (*TempDir, error) { return NewDirAtRoot("", prefix) } -// NewDir creates a new TempDir at the given root. +// NewDirAtRoot creates a new TempDir at the given root. func NewDirAtRoot(root, prefix string) (*TempDir, error) { tmpDir, err := os.MkdirTemp(root, prefix) if err != nil {