Skip to content
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

R4R: Move all store keys into constants #3119

Merged
merged 5 commits into from
Dec 19, 2018
Merged

R4R: Move all store keys into constants #3119

merged 5 commits into from
Dec 19, 2018

Conversation

jackzampolin
Copy link
Member

This PR cleans up storekeys, query routes and message routes that were previously defined as string (e.g. "gov" and "acc") and used in many places in the SDK by placing them in their module.

cc @alexanderbez @cwgoes

@alexanderbez
Copy link
Contributor

See comment @jackzampolin -- I'm not sure we should be doing this.

@cwgoes
Copy link
Contributor

cwgoes commented Dec 14, 2018

@alexanderbez The strings don't provide objcap IIRC, it's because we use memory addresses in the store implementation.

@codecov
Copy link

codecov bot commented Dec 14, 2018

Codecov Report

Merging #3119 into develop will decrease coverage by 0.7%.
The diff coverage is 80.39%.

@@             Coverage Diff             @@
##           develop    #3119      +/-   ##
===========================================
- Coverage    55.05%   54.35%   -0.71%     
===========================================
  Files          133      137       +4     
  Lines         9430    10234     +804     
===========================================
+ Hits          5192     5563     +371     
- Misses        3921     4332     +411     
- Partials       317      339      +22

@alexanderbez
Copy link
Contributor

Ahhh right! They are pointers! @jackzampolin can you please rebase?

Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes seem good! I left one remark on queriers 👍

cmd/gaia/app/app.go Outdated Show resolved Hide resolved
@jackzampolin
Copy link
Member Author

Updated @alexanderbez

Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple enough changes and I don't see anything breaking, so LGTM. Warrants another review though.

Copy link
Contributor

@cwgoes cwgoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@cwgoes cwgoes merged commit 14ebc65 into develop Dec 19, 2018
@cwgoes cwgoes deleted the jack/storekeys branch December 19, 2018 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants