Skip to content

Commit 3cfbd0d

Browse files
committed
update deps and adapt where needed
1 parent 70d3253 commit 3cfbd0d

File tree

3 files changed

+49
-49
lines changed

3 files changed

+49
-49
lines changed

Cargo.lock

Lines changed: 44 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/service/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ use rama::{
1818
};
1919

2020
fn apply_common_middleware(
21-
service: impl Service<Request, Response = Response, Error = Infallible>,
22-
) -> impl Service<Request, Response = Response, Error = Infallible> {
21+
service: impl Service<Request, Output = Response, Error = Infallible>,
22+
) -> impl Service<Request, Output = Response, Error = Infallible> {
2323
(
2424
MapResponseBodyLayer::new(Body::new),
2525
TraceLayer::new_for_http(),
@@ -35,14 +35,14 @@ fn apply_common_middleware(
3535
}
3636

3737
pub async fn load_http_service()
38-
-> Result<impl Service<Request, Response = Response, Error = Infallible>, OpaqueError> {
38+
-> Result<impl Service<Request, Output = Response, Error = Infallible>, OpaqueError> {
3939
let app =
4040
RedirectHttpToHttps::new().with_rewrite_uri_rule(UriMatchReplaceDomain::drop_prefix_www());
4141
Ok(apply_common_middleware(app))
4242
}
4343

4444
pub async fn load_https_service()
45-
-> Result<impl Service<Request, Response = Response, Error = Infallible>, OpaqueError> {
45+
-> Result<impl Service<Request, Output = Response, Error = Infallible>, OpaqueError> {
4646
let app = Router::new().with_dir_embed_and_serve_mode(
4747
"/",
4848
include_dir!("$CARGO_MANIFEST_DIR/src/service/legacy"),

src/utils/trace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn init_structured(default_directive: impl Into<Directive>) {
5353
.without_proxy_support()
5454
.without_tls_support()
5555
.with_default_http_connector()
56-
.with_connection_pool(HttpPooledConnectorConfig::default())
56+
.try_with_connection_pool(HttpPooledConnectorConfig::default())
5757
.expect("build http exporter client service")
5858
.build_client();
5959
let client = OtelExporter::new(svc);

0 commit comments

Comments
 (0)