-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 AppModule #6231
simplify AppModule #6231
Conversation
👋 Thanks for creating a PR! Before we can merge this PR, please make sure that all the following items have been For contributor use:
For admin use:
Thank you for your contribution to the Cosmos-SDK! 🚀 |
Codecov Report
@@ Coverage Diff @@
## master #6231 +/- ##
==========================================
- Coverage 55.53% 55.50% -0.03%
==========================================
Files 464 465 +1
Lines 27549 27536 -13
==========================================
- Hits 15299 15284 -15
- Misses 11152 11154 +2
Partials 1098 1098 |
…cosmos-sdk into jonathan/module-avoid-route-name
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.
Changes look great to me! I left a comment on the general approach.
types/router.go
Outdated
Route(ctx Context, path string) Handler | ||
} | ||
|
||
// Route represents a Route used by the Router. | ||
type Route interface { |
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.
Out of curiosity, why make this an interface and not just expose the concrete type? Do we plan on having multiple implementations?
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.
@alexanderbez it is funny because when I was reviewing the code I just thought the same as you and I was very close to make it concrete.
So this confirms it, I will change it. Thanks!
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.
Great, good work!
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.
LGTM. Agree with @alexanderbez comment
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.
ACK. Great work @jgimeno
Description
closes: #6232