-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat!: new ReaderWatch class for handling deleted or replaced files #27
Conversation
BREAKING: this removes the `lazy = true` option which was adding complexity / overhead and is not useful / called for at this time.
e85aa08
to
2a2c56f
Compare
* main: feat!: Remove lazy option for server (#30)
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.
Overall lgtm. Had a couple of non-blocking remarks, a couple of which I'll address before merging.
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.
one thing that's a nice-to-have here is making sure that registering with a prefix works properly. Thought there used to be tests for that but maybe they got lost with the recent changes?
Not blocking and can do as a follow-up
BREAKING: you can no longer start the server with a filepath that does not point to a valid SMP file. If you want this functionality, use the new
ReaderWatch
class and pass an instance of that to the server.The
ReaderWatch
class will watch the given filepath to see if the file is deleted or replaced. Pass an instance ofReaderWatch
to the server to support serving a fixed filepath which may or may not have a file, and watch for if the file at the filepath changes.