-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix blender save #590
base: main
Are you sure you want to change the base?
Fix blender save #590
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we will need way more documentation to keep this usable in the future
notify-debouncer-full/src/lib.rs
Outdated
|
||
events_expired.push(event); | ||
} else { | ||
self.queues.get_mut(&path).unwrap().events.push_front(event); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here for unwrap stuff - want to avoid crashing and rather report an error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
b110f0e
to
3fb1c37
Compare
Agreed. I will add more comments as I work on it. |
We can merge this for now, if you want. I just would like to document this, because I fear we will otherwise have a ton of regressions in the future. |
Then let's not merge it for now. I will document it better and try to fix the original issue. While the PR does improve the behavior of the debouncer, it doesn't actually fix the blender issue. |
The debouncer is getting increasingly complicated. It took me a few tries to design this change as defensively as possible. I hope it doesn't break anything.
This PR is based on #569.