aboutsummaryrefslogtreecommitdiff
path: root/worker/lib
diff options
context:
space:
mode:
Diffstat (limited to 'worker/lib')
-rw-r--r--worker/lib/watchers/fsevents.go (renamed from worker/lib/watchers/darwin/darwin.go)4
-rw-r--r--worker/lib/watchers/inotify.go (renamed from worker/lib/watchers/linux/linux.go)7
2 files changed, 7 insertions, 4 deletions
diff --git a/worker/lib/watchers/darwin/darwin.go b/worker/lib/watchers/fsevents.go
index e20761f3..7b657999 100644
--- a/worker/lib/watchers/darwin/darwin.go
+++ b/worker/lib/watchers/fsevents.go
@@ -1,7 +1,7 @@
//go:build darwin
// +build darwin
-package darwin
+package watchers
import (
"time"
@@ -13,7 +13,7 @@ import (
)
func init() {
- handlers.RegisterWatcherFactory("darwin", newDarwinWatcher)
+ handlers.RegisterWatcherFactory(newDarwinWatcher)
}
type darwinWatcher struct {
diff --git a/worker/lib/watchers/linux/linux.go b/worker/lib/watchers/inotify.go
index 473bb05e..027ef4f2 100644
--- a/worker/lib/watchers/linux/linux.go
+++ b/worker/lib/watchers/inotify.go
@@ -1,4 +1,7 @@
-package linux
+//go:build !darwin
+// +build !darwin
+
+package watchers
import (
"git.sr.ht/~rjarry/aerc/log"
@@ -8,7 +11,7 @@ import (
)
func init() {
- handlers.RegisterWatcherFactory("linux", newInotifyWatcher)
+ handlers.RegisterWatcherFactory(newInotifyWatcher)
}
type inotifyWatcher struct {