-
Notifications
You must be signed in to change notification settings - Fork 19
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: fail on non-success gohbem init #254
base: main
Are you sure you want to change the base?
Conversation
Fixes it in the sense that it exits if the pokemon data cannot be download? (And I assume therefore potentially goes into a restart loop?) Should it instead try again in a short while while keeping golbat up? |
Thought about that as well.. This would cause no-pvp data at all for at least 20-30 minutes until retry?! :) this "fail on loading pokemon data" could be caused if e.g. not sure which fix would be better :( so you suggest to retry after 1-2 minutes? :) |
I'm not sure either. I've summarised the options as I see them:
Probably (3) is the most attractive |
I looked at the gohbem code and it has a function to load from disk already, so the whole download/save to golbat cache/load from disk/refresh on interval could move into golbat code. |
I saw there is also a |
We're probably best just doing it in golbat. We can try to download, if we succeed write to the file. |
Probably this needs to update gohbem as well.... The masterfile watcher is fetching new data each hour by default.... This update would need to trigger a write to cache .... |
As per my description above I think golbat should have the timer, so the download, write the file and gohbem should be told to load from the cache file using the existing load from file function it has. |
fixes #214