Skip to content

Commit

Permalink
fix compile warning about unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tsnoam committed Jan 7, 2025
1 parent ab24052 commit c02eaa8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/tunnel/server/handler_websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use crate::tunnel::server::utils::{bad_request, inject_cookie, HttpResponse};
use crate::tunnel::server::WsServer;
use crate::tunnel::transport;
use crate::tunnel::transport::websocket::mk_websocket_tunnel;
use bytes::Bytes;
use fastwebsockets::Role;
use http_body_util::combinators::BoxBody;
use http_body_util::Either;
Expand Down
4 changes: 1 addition & 3 deletions src/tunnel/server/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ use std::fmt::{Debug, Formatter};
use crate::protocols;
use crate::tunnel::{try_to_sock_addr, LocalProtocol, RemoteAddr};
use arc_swap::ArcSwap;
use bytes::Bytes;
use http_body_util::combinators::BoxBody;
use hyper::body::Incoming;
use hyper::server::conn::{http1, http2};
use hyper::service::service_fn;
use hyper::{http, Request, Response, StatusCode, Version};
use hyper::{http, Request, StatusCode, Version};
use hyper_util::rt::{TokioExecutor, TokioTimer};
use parking_lot::Mutex;
use socket2::SockRef;
Expand Down
1 change: 0 additions & 1 deletion src/tunnel/server/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use hyper::body::{Body, Incoming};
use hyper::header::{HeaderValue, COOKIE, SEC_WEBSOCKET_PROTOCOL};
use hyper::{http, Request, Response, StatusCode};
use jsonwebtoken::TokenData;
use std::cmp::min;
use std::net::IpAddr;
use tracing::{error, info, warn};
use url::Host;
Expand Down

0 comments on commit c02eaa8

Please sign in to comment.