summaryrefslogtreecommitdiffstats
path: root/crates/auth/src/server/grpc/interceptor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/auth/src/server/grpc/interceptor.rs')
-rw-r--r--crates/auth/src/server/grpc/interceptor.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/crates/auth/src/server/grpc/interceptor.rs b/crates/auth/src/server/grpc/interceptor.rs
index 6fbe7fa..155a306 100644
--- a/crates/auth/src/server/grpc/interceptor.rs
+++ b/crates/auth/src/server/grpc/interceptor.rs
@@ -1,6 +1,12 @@
-use tonic::{Status, service::Interceptor};
+use tonic::{
+ Status,
+ service::{Interceptor, interceptor::InterceptedService},
+ transport::Channel,
+};
use tracing::Span;
+pub type Intercepted = InterceptedService<Channel, MyInterceptor>;
+
#[derive(Clone, Copy)]
pub struct MyInterceptor;