-
Notifications
You must be signed in to change notification settings - Fork 23
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
feat: implement grpc_gateway api client #222
Conversation
35ff5ac
to
8948a20
Compare
#[cfg_attr(not(target_arch = "wasm32"), async_trait)] | ||
#[cfg_attr(target_arch = "wasm32", async_trait(?Send))] |
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, what is the reasoning behind this? We need Send
on non-wasm, but we don't need it on wasm?
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.
Yep, that's right -- I know, it's an eyesore :( (more info here).
More generally, I don't love the look of this yet. But I was thinking to revisit it after / as I sort out how to implement the subscribe()
call since I suspect it will have the gnarlier concurrency issues.
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.
That's totally fine, makes sense to prioritize other things! The surface area of this work is so large. Just wanted to understand it for future reference
d97e9b8
to
4191f08
Compare
81e6238
to
4d448d2
Compare
QueryResponse, SubscribeRequest, | ||
}; | ||
|
||
// TODO: consider moving these (and other address const) into `xmtp_proto` |
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.
👍
4d448d2
to
1ed1a1a
Compare
This begins the implementation of the wasm-friendly grpc-gateway API client.
It continues where #217 left off.
xmtp_networking
intoxmtp_api_grpc
andxmtp_api_grpc_gateway
xmtp_api_grpc_gateway
Query
Publish
BatchQuery
Future PR
Subscribe
xmtp
surgery to make storage layer swappable