Skip to content

Commit

Permalink
hyper-util
Browse files Browse the repository at this point in the history
  • Loading branch information
hatoo committed Nov 27, 2023
1 parent 3a742c3 commit b7a93c4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 263 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ regex-syntax = "0.7.4"
url = "2.4.0"
pin-project-lite = "0.2.13"
http-body-util = "0.1.0"
hyper-util = "0.1.1"

[target.'cfg(unix)'.dependencies]
rlimit = "0.10.0"
Expand All @@ -71,6 +72,5 @@ jemallocator = "0.5.0"
assert_cmd = "2.0.2"
axum = { version = "0.7", features = ["http2"] }
bytes = "1.0"
hyper-util = "0.1.1"
lazy_static = "1.4.0"
regex = "1.9.6"
4 changes: 2 additions & 2 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ use hyper::{
body::{Body, Incoming},
http,
};
use hyper_util::rt::{TokioExecutor, TokioIo};

Check failure on line 7 in src/client.rs

View workflow job for this annotation

GitHub Actions / Check (ubuntu-latest, beta)

unresolved imports `hyper_util::rt::TokioExecutor`, `hyper_util::rt::TokioIo`

Check failure on line 7 in src/client.rs

View workflow job for this annotation

GitHub Actions / Check (ubuntu-latest, beta, --no-default-features --features rustls)

unresolved imports `hyper_util::rt::TokioExecutor`, `hyper_util::rt::TokioIo`

Check failure on line 7 in src/client.rs

View workflow job for this annotation

GitHub Actions / Check (ubuntu-latest, nightly)

unresolved imports `hyper_util::rt::TokioExecutor`, `hyper_util::rt::TokioIo`

Check failure on line 7 in src/client.rs

View workflow job for this annotation

GitHub Actions / Check (ubuntu-latest, stable, --no-default-features --features rustls)

unresolved imports `hyper_util::rt::TokioExecutor`, `hyper_util::rt::TokioIo`

Check failure on line 7 in src/client.rs

View workflow job for this annotation

GitHub Actions / Check (ubuntu-latest, nightly, --no-default-features --features rustls)

unresolved imports `hyper_util::rt::TokioExecutor`, `hyper_util::rt::TokioIo`

Check failure on line 7 in src/client.rs

View workflow job for this annotation

GitHub Actions / Check (ubuntu-latest, beta)

unresolved imports `hyper_util::rt::TokioExecutor`, `hyper_util::rt::TokioIo`
use rand::prelude::*;
use std::{pin::Pin, sync::Arc};
use thiserror::Error;
use tokio::net::TcpStream;
use url::{ParseError, Url};

use crate::{
tokiort::{TokioExecutor, TokioIo},
url_generator::{UrlGenerator, UrlGeneratorError},
ConnectToEntry,
};
Expand Down Expand Up @@ -238,7 +238,7 @@ impl Stream {
}
}
async fn handshake_http2(self) -> Result<SendRequestHttp2, ClientError> {
let builder = hyper::client::conn::http2::Builder::new(TokioExecutor);
let builder = hyper::client::conn::http2::Builder::new(TokioExecutor::new());

match self {
Stream::Tcp(stream) => {
Expand Down
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ mod histogram;
mod monitor;
mod printer;
mod timescale;
mod tokiort;
mod url_generator;

#[cfg(unix)]
Expand Down
259 changes: 0 additions & 259 deletions src/tokiort.rs

This file was deleted.

0 comments on commit b7a93c4

Please sign in to comment.