Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yangjing committed Sep 11, 2024
1 parent ca58a2e commit f63c0d8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions crates/ultimate-grpc/src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use futures::{Future, TryFutureExt};
use prost_types::FieldMask;
use tonic::{metadata::MetadataMap, service::RoutesBuilder, transport::Server, Status};
use tower_http::{compression::CompressionLayer, trace::TraceLayer};
use tower_http::trace::TraceLayer;
use ultimate::{
configuration::model::{GrpcConf, SecurityConf},
security::{jose::JwtPayload, SecurityUtils},
Expand Down Expand Up @@ -38,12 +38,8 @@ where

// let s = router.into_service();

let serve = b
.layer(CompressionLayer::new())
.layer(TraceLayer::new_for_grpc())
.add_routes(routes_builder.routes())
.serve(grpc_addr)
.map_err(DataError::from);
let serve =
b.layer(TraceLayer::new_for_grpc()).add_routes(routes_builder.routes()).serve(grpc_addr).map_err(DataError::from);
Ok(serve)
}

Expand Down

0 comments on commit f63c0d8

Please sign in to comment.