fix: macs build
This commit is contained in:
parent
f34fc3cb93
commit
07fcb900f8
2 changed files with 6 additions and 2 deletions
|
|
@ -411,7 +411,11 @@ const FSEventsBackend = struct {
|
|||
.modified
|
||||
else
|
||||
continue;
|
||||
ctx.handler.change(path, event_type);
|
||||
ctx.handler.change(path, event_type) catch |e| switch (e) {
|
||||
error.HandlerFailed => {
|
||||
std.log.err("nightwatch.callback failed: {t}", .{e});
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ fn drainEvents(watcher: *Watcher) !void {
|
|||
if (builtin.os.tag == .linux) {
|
||||
try watcher.handle_read_ready();
|
||||
} else {
|
||||
std.time.sleep(300 * std.time.ns_per_ms);
|
||||
std.Thread.sleep(300 * std.time.ns_per_ms);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue