-
Notifications
You must be signed in to change notification settings - Fork 302
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
Remove wallet id filter from view service #3557
Conversation
9cc3916
to
f88c799
Compare
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.
Critical thing to review. Proto messages have been updated.
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.
Think RustRover reformats the imports in this way to make publicly exposed exports at the top
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.
kind of noisy but seems fine. there's a way to get cargo fmt to do this but it requires using nightly rustfmt and a custom config and that seemed like an unacceptable DX tax to put on every contributor, but the effect is that our imports don't stay tidy. so occasionally having them all cleaned up seems fine.
// | ||
// View protocol requests optionally include the wallet id, used to | ||
// identify which set of data to query. |
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.
If we did want to have a multi-tenant view service in the future, we could do so by putting the wallet ID in the request headers. This would be reasonably easy to implement on the Rust side. But not important for now, just noting that the option is open.
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!
Closes penumbra-zone/web#334
Only one wallet is active at a time for the view service. Therefore, we can remove all of these
wallet_id
filters for it.