Skip to content

Commit 0c9d5d6

Browse files
committed
Update grpc.rs
1 parent 112306b commit 0c9d5d6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

crates/client/src/grpc.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,10 @@ macro_rules! proxier_impl {
521521
}
522522
dyn_clone::clone_trait_object!($trait_name);
523523

524+
// `allow(deprecated)`: upstream proto deprecations (e.g. cloud-api
525+
// AddNamespaceRegion) generate calls to deprecated tonic client
526+
// methods inside the impls; we still wire them for back-compat.
527+
#[allow(deprecated)]
524528
impl<RC> $trait_name for RC
525529
where
526530
RC: RawGrpcCaller + RawClientProducer + Clone + Unpin,
@@ -533,6 +537,7 @@ macro_rules! proxier_impl {
533537

534538
impl<T: Send + Sync + 'static> RawGrpcCaller for $client_type<T> {}
535539

540+
#[allow(deprecated)]
536541
impl<T> $trait_name for $client_type<T>
537542
where
538543
T: GrpcService<Body> + Clone + Send + Sync + 'static,

0 commit comments

Comments
 (0)