Skip to content

Commit

Permalink
keyprovider: Temporary fix for nightly builds
Browse files Browse the repository at this point in the history
Do not autogenerate keyprovider.rs and patch it until
hyperium/tonic#892 is merged

Signed-off-by: Samuel Ortiz <s.ortiz@apple.com>
  • Loading branch information
Samuel Ortiz committed Jan 26, 2022
1 parent b08f8c7 commit 6ad4de4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.rs
Expand Up @@ -4,9 +4,9 @@
extern crate tonic_build;

fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.build_server(true)
.out_dir("src/utils/")
.compile(&["src/utils/proto/keyprovider.proto"], &["src/utils"])?;
// tonic_build::configure()
// .build_server(true)
// .out_dir("src/utils/")
// .compile(&["src/utils/proto/keyprovider.proto"], &["src/utils"])?;
Ok(())
}
2 changes: 2 additions & 0 deletions src/utils/keyprovider.rs
Expand Up @@ -59,11 +59,13 @@ pub mod key_provider_service_client {
#[doc = r""]
#[doc = r" This requires the server to support it otherwise it might respond with an"]
#[doc = r" error."]
#[must_use]
pub fn send_gzip(mut self) -> Self {
self.inner = self.inner.send_gzip();
self
}
#[doc = r" Enable decompressing responses with `gzip`."]
#[must_use]
pub fn accept_gzip(mut self) -> Self {
self.inner = self.inner.accept_gzip();
self
Expand Down

0 comments on commit 6ad4de4

Please sign in to comment.