Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brayniac committed Aug 2, 2024
1 parent 36efe0a commit 4f2ab7b
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/clients/ping/http2.rs
Original file line number Diff line number Diff line change
@@ -1,30 +1,17 @@
use crate::clients::http2::Queue;
use crate::clients::http2::TokioExecutor;
use crate::clients::timeout;
use crate::clients::WorkItem;
use crate::net::Connector;
use crate::workload::ClientRequest;
use crate::*;
use async_channel::Receiver;
use bytes::Buf;
use bytes::BufMut;
use bytes::Bytes;
use bytes::BytesMut;
use chrono::DateTime;
use chrono::Utc;
use h2::client::SendRequest;
use http::uri::Authority;
use http::HeaderName;
use http::HeaderValue;
use http::Method;
use http::Uri;
use http::Version;
use session::Buffer;
use std::borrow::Borrow;
use std::borrow::BorrowMut;
use std::io::Error;
use std::io::ErrorKind;
use std::io::Write;
use std::time::Instant;
use tokio::net::TcpStream;
use tokio::runtime::Runtime;
Expand Down Expand Up @@ -170,11 +157,10 @@ async fn task(
};

let now: DateTime<Utc> = Utc::now();

let request = http::request::Builder::new()
.version(Version::HTTP_2)
.method(Method::POST)
.uri(&format!("http://192.168.1.205:12321/pingpong.Ping/Ping"))
.uri(&format!("http://{auth}/pingpong.Ping/Ping"))
.header("content-type", "application/grpc")
.header("date", now.to_rfc2822())
.header("user-agent", "unknown/0.0.0")
Expand Down

0 comments on commit 4f2ab7b

Please sign in to comment.