summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2023-12-14 07:14:35 -0600
committerBrent Baude <bbaude@redhat.com>2023-12-14 07:57:49 -0600
commita6afa0329f5ee39872cb893f9e219ebf66ba1261 (patch)
tree1a621ead8ce49fedb1be57f88d0d08be91023e9f /src
parent1cf0b1666f6aa969201f86f9518decd9677d5f7b (diff)
Use tonic::transport::Uri instead of HTTP
With http-1.0.0, the use of HTTP::Uri is no longer valid for when a tonic::transport::Uri is required. Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/dhcp_proxy/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dhcp_proxy/lib.rs b/src/dhcp_proxy/lib.rs
index 31474c6..6179a92 100644
--- a/src/dhcp_proxy/lib.rs
+++ b/src/dhcp_proxy/lib.rs
@@ -6,14 +6,13 @@ use std::convert::TryFrom;
use std::error::Error;
use g_rpc::netavark_proxy_client::NetavarkProxyClient;
-use http::Uri;
use log::debug;
use std::fs::File;
use std::net::AddrParseError;
use std::net::{Ipv4Addr, Ipv6Addr};
use std::str::FromStr;
use tokio::net::UnixStream;
-use tonic::transport::{Channel, Endpoint};
+use tonic::transport::{Channel, Endpoint, Uri};
use tonic::Request;
use tower::service_fn;