From dee67524bbb615b3f9ebc4a500499acf7ac3e8fe Mon Sep 17 00:00:00 2001 From: Gautam Ramaswamy Date: Fri, 10 Jan 2025 12:01:36 -0800 Subject: [PATCH] watcher: Change interval to latency option fswatch recently updated and deprecated the -interval option. There was no communication I could find for this but the latency option should be the equivalent. It has existed for a while so should be safe to switch over to. --- watcher/watcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watcher/watcher.go b/watcher/watcher.go index 0e05caf..74d9d39 100644 --- a/watcher/watcher.go +++ b/watcher/watcher.go @@ -67,7 +67,7 @@ func (w *FSEventsWatcher) Run(ctx context.Context) error { defer cancel() g, ctx := errgroup.WithContext(ctx) - cmd := exec.CommandContext(ctx, "fswatch", "-n", "-interval", "0.1", w.directory) + cmd := exec.CommandContext(ctx, "fswatch", "-n", "-l", "0.1", w.directory) stdout, err := cmd.StdoutPipe() if err != nil { return oops.Wrapf(err, "")