From 6f8cfc946bcb42ec89839db0979794a0ef871333 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Mon, 9 Mar 2026 11:02:47 +0100 Subject: [PATCH] refactor: misc minor clean-ups --- src/backend/FSEvents.zig | 2 +- src/types.zig | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/backend/FSEvents.zig b/src/backend/FSEvents.zig index ce44e76..18def65 100644 --- a/src/backend/FSEvents.zig +++ b/src/backend/FSEvents.zig @@ -173,7 +173,7 @@ pub fn arm(self: *@This(), allocator: std.mem.Allocator) error{ OutOfMemory, Arm ) orelse return error.ArmFailed; errdefer cf.FSEventStreamRelease(stream); - const queue = cf.dispatch_queue_create("flow.file_watcher", null); + const queue = cf.dispatch_queue_create("nightwatch", null); cf.FSEventStreamSetDispatchQueue(stream, queue); _ = cf.FSEventStreamStart(stream); diff --git a/src/types.zig b/src/types.zig index 62ed391..be9b852 100644 --- a/src/types.zig +++ b/src/types.zig @@ -5,16 +5,15 @@ pub const EventType = enum { created, modified, deleted, - /// Only produced on macOS and Windows where the OS gives no pairing info. - /// On Linux, paired renames are emitted as a rename event with both paths instead. + /// kqueue, FSEvents and Windows emit deleted and then created events for renames. + /// INotfiy emits a rename event with both paths instead. renamed, }; pub const ObjectType = enum { file, dir, - /// The object type could not be determined (e.g. a deleted file on Windows - /// where the path no longer exists to query). + /// The object type is unknown on Windows when a file is deleted and no path exists to query. unknown, };