Skip to content

Commit

Permalink
use hyper-rt
Browse files Browse the repository at this point in the history
  • Loading branch information
cssivision committed Apr 29, 2024
1 parent a5b88c4 commit f4fd9de
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 219 deletions.
13 changes: 13 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ base64 = "0.22"
toml = "0.8"
trait-variant = "0.1.2"
async-pool = { git = "https://github.com/cssivision/async-pool.git" }
hyper-rt = "0.1"
2 changes: 1 addition & 1 deletion src/bin/http2socks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ use hyper::server::conn::http1;
use hyper::service::service_fn;
use hyper::upgrade::Upgraded;
use hyper::{Method, Request, Response};
use hyper_rt::{HyperIo, HyperTimer};

use http2socks::args::parse_args;
use http2socks::rt::{HyperIo, HyperTimer};

const CONNECT_TIMEOUT: Duration = Duration::from_secs(3);

Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
pub mod args;
pub mod config;
pub mod rt;
217 changes: 0 additions & 217 deletions src/rt.rs

This file was deleted.

0 comments on commit f4fd9de

Please sign in to comment.