-
Notifications
You must be signed in to change notification settings - Fork 606
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
Simplify our app.go #671
Comments
I think we should make an Then we make |
@ValarDragon this would surely reduce a lot of boilerplate in app.go |
ref #697 |
Closing the tracking issue as the most important part is done, and #713 captures the remaining small component (that is still wanted / a PR would be very appreciated, but not at all a priority) |
@ValarDragon A side effect... other packages will have to access the App keepers like this |
Yeah, I don't think the keepers struct is worth the tradeoff. (You could make the main app 'inherit' all of those, but its still not great) I actually tried writing the AppKeepers struct, before then switching to the solution of everything be a pointer |
As evidenced in the v5 upgrade, our app.go is ridiculously complex. The bug got introduced here dedcfb8#diff-0f1d2976054440336a576d4%5B%E2%80%A6%5D13012bce0e3c425819b7L342-R360 , but honestly the root cause imo is that this entire file is needlessly complex, where the order of every single line matters. It must be made more modular.
/upgrades/v3
,/upgrades/v4
, etc.To goalpost, app.go is currently almost 1000 lines long. Lets first try to get this to under 500 lines.
The text was updated successfully, but these errors were encountered: