From 637e7e6a7ecb89bd4439e7a386ea40be32ac7c6b Mon Sep 17 00:00:00 2001 From: Mattia Penati Date: Mon, 1 Jan 2024 21:23:45 +0100 Subject: [PATCH] update `http` depndency --- Cargo.toml | 2 +- examples/http/Cargo.toml | 1 - examples/http/src/main.rs | 3 +-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0448134..58b3117 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,7 @@ license.workspace = true autoexamples = false [dependencies] -http = "0.2.10" +http = "0.2.11" opentelemetry.workspace = true opentelemetry-http = "0.10.0" pin-project = "1.1.3" diff --git a/examples/http/Cargo.toml b/examples/http/Cargo.toml index b919a83..ecb1f6d 100644 --- a/examples/http/Cargo.toml +++ b/examples/http/Cargo.toml @@ -7,7 +7,6 @@ publish = false [dependencies] axum = { version = "0.6", default-features = false, features = ["http1", "tokio"] } -http = "0.2" hyper = { version = "0.14", features = ["http1", "client"] } opentelemetry.workspace = true opentelemetry-otlp.workspace = true diff --git a/examples/http/src/main.rs b/examples/http/src/main.rs index ea25c6b..258219f 100644 --- a/examples/http/src/main.rs +++ b/examples/http/src/main.rs @@ -1,5 +1,4 @@ -use axum::{routing::get, Router}; -use http::Request; +use axum::{http::Request, routing::get, Router}; use hyper::Client; use opentelemetry_sdk::{propagation::TraceContextPropagator, runtime::Tokio}; use tower::{Service, ServiceBuilder, ServiceExt};