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

zcash_client_backend: Fix tor::grpc module feature flag #1532

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

str4d
Copy link
Contributor

@str4d str4d commented Sep 10, 2024

We already depend on rustls and webpki-roots for tor::http, but tonic has its own feature flag that needs to be enabled for equivalent support in tor::grpc. We didn't need that feature flag enabled for the proto::service::compact_tx_streamer_client module because those constructors take a D: TryInto<tonic::transport::Endpoint>, which abstracts over TLS and leaves it up to the caller. By constrast, in tor::grpc we need to construct the Endpoint manually from a Uri and then configure TLS ourselves.

We already depend on `rustls` and `webpki-roots` for `tor::http`, but
`tonic` has its own feature flag that needs to be enabled for equivalent
support in `tor::grpc`. We didn't need that feature flag enabled for the
`proto::service::compact_tx_streamer_client` module because those
constructors take a `D: TryInto<tonic::transport::Endpoint>`, which
abstracts over TLS and leaves it up to the caller. By constrast, in
`tor::grpc` we need to construct the `Endpoint` manually from a `Uri`
and then configure TLS ourselves.
Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.26%. Comparing base (c97e9a1) to head (ee7cb69).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1532   +/-   ##
=======================================
  Coverage   61.26%   61.26%           
=======================================
  Files         146      146           
  Lines       16890    16890           
=======================================
  Hits        10347    10347           
  Misses       6543     6543           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@nuttycom nuttycom left a comment

Choose a reason for hiding this comment

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

utACK

@nuttycom nuttycom merged commit e7abed3 into main Sep 10, 2024
28 checks passed
@str4d str4d deleted the zcb-refix-all-features-build branch September 10, 2024 18:44
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.

2 participants