blob: 33a835db0345637ab31f24388c1e51a2cc4c91a3 (
plain)
1
2
3
4
5
6
7
8
9
10
|
use tonic::{Status, service::Interceptor};
#[derive(Clone, Copy)]
pub struct MyInterceptor;
impl Interceptor for MyInterceptor {
fn call(&mut self, request: tonic::Request<()>) -> Result<tonic::Request<()>, Status> {
Ok(request)
}
}
|