Skip to content

Conversation

@Quazia
Copy link
Contributor

@Quazia Quazia commented Apr 17, 2025

Closses #373

I don't know if we want to add a test for this - not sure how we'd go about it since we probably don't want to test main.rs directly.

Also noticed that the tonic and tonic-build versions are quite different. Worth updating them to be consistent or is there a reason for the older tonic-build version?

@vercel
Copy link

vercel bot commented Apr 17, 2025

@Quazia is attempting to deploy a commit to the farcaster Team on Vercel.

A member of the Team first needs to authorize it.

let grpc_shutdown_tx = shutdown_tx.clone();
let hub_service = HubServiceServer::from_arc(service.clone())
.accept_compressed(CompressionEncoding::Gzip)
.send_compressed(CompressionEncoding::Gzip);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this always or only if the header is present in the request? Just want to make sure it won't break existing clients.

Choose a reason for hiding this comment

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

I'm 95% sure that it accepts it, but it doesn't require it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep - accepts but doesn't require it.

serde_json = "1.0"
sha2 = "0.10.6"
tonic = "0.12.3"
tonic = { version = "0.12.3", features = ["gzip"] }
Copy link
Contributor

Choose a reason for hiding this comment

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

I think there were some issues upgrading tonic-build. Worth a shot if build passes, but if it requires a bunch of patches, probably not worth it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It requires a fair number of patches but still would be worth picking up at some point.

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