-
Notifications
You must be signed in to change notification settings - Fork 23
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: read scorer #942
fix: read scorer #942
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.
@bonomat great, if that fixes the issue 🙂
As we have checked my scorer file was anyways empty, so I guess it doesn't hurt not reading the file from disk?
Are there any big disadvantages of recreating the scorer from scratch every time?
I guess we could run without reading from disc. This means, we will not learn from past payments and only keep an in-memory picture of the network. |
@ reviewers :
If we go for the second, let's squash the commits. |
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 would go for solution 2 - it does not panic anymore, and we're logging potential problems, without sweeping them completely under the rug.
On iOS it seems like we can run into a problem where we can't read the scorer file anymore. Reading will then just panic. Here we catch the panic and delete the broken file which allows us to continue.
bors r+ |
@bonomat fyi: https://github.com/get10101/10101/actions/runs/5540939930/jobs/10113681545 |
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
With this patch we don't read a historically stored scrorer from disk. It's not ideal, but at least users running into panics when loading the scorer will be able to run the app again
Workaround for #797
fix #797