refactor: misc minor clean-ups

This commit is contained in:
CJ van den Berg 2026-03-09 11:02:47 +01:00
parent aa4e2920dd
commit 6f8cfc946b
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 4 additions and 5 deletions

View file

@ -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);

View file

@ -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,
};