Skip to content

Commit

Permalink
kqueue: emit EventKind::Modify on kqueue write event
Browse files Browse the repository at this point in the history
This should make the event emitted by the kqueue backend to be more in
line with the inotify backend and the documentation on `EventKind`.
  • Loading branch information
xanderio authored and 0xpr03 committed Nov 23, 2021
1 parent 07809b9 commit b430583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kqueue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl EventLoop {

//data was written to this file
kqueue::Vnode::Write => {
Event::new(EventKind::Access(AccessKind::Close(AccessMode::Write)))
Event::new(EventKind::Modify(ModifyKind::Data(DataChange::Any)))
}

/*
Expand Down

0 comments on commit b430583

Please sign in to comment.