Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor use of futures-util crate #59

Merged
merged 2 commits into from
Apr 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ edition = "2021"
base64 = "0.22.0"
byteorder = "1.5.0"
bytes = "1.5.0"
futures-util = "0.3.30"
futures-util = { version = "0.3.30", default-features = false }
http = "0.2.11"
http-body = "0.4.6"
httparse = "1.8.0"
Expand Down
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use std::{
future::Future,
pin::Pin,
task::{Context, Poll},
};

use futures_util::Future;
use http::{Request, Response};
use tonic::body::BoxBody;
use tower_service::Service;
Expand Down
3 changes: 1 addition & 2 deletions src/response_body.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
use std::{
ops::{Deref, DerefMut},
pin::Pin,
task::{Context, Poll},
task::{ready, Context, Poll},
};

use base64::{prelude::BASE64_STANDARD, Engine};
use byteorder::{BigEndian, ByteOrder};
use bytes::{BufMut, Bytes, BytesMut};
use futures_util::ready;
use http::{header::HeaderName, HeaderMap, HeaderValue};
use http_body::Body;
use httparse::{Status, EMPTY_HEADER};
Expand Down
Loading