summaryrefslogtreecommitdiffstats
path: root/ipfs-api/src/lib.rs
diff options
context:
space:
mode:
authorFerris Tseng <ferris@navapbc.com>2019-12-25 15:59:58 -0500
committerFerris Tseng <ferris@navapbc.com>2019-12-25 15:59:58 -0500
commitad1936065efea19616852d099eb8bd2f1eba386a (patch)
treecc7c1a01388fc348b05b23f9446e2f107bacb979 /ipfs-api/src/lib.rs
parent7923508f7c7cd154290379f95e4966d393e4334d (diff)
use "impl Stream" instead of the async stream response type
Diffstat (limited to 'ipfs-api/src/lib.rs')
-rw-r--r--ipfs-api/src/lib.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/ipfs-api/src/lib.rs b/ipfs-api/src/lib.rs
index bd1f8d0..44e06b5 100644
--- a/ipfs-api/src/lib.rs
+++ b/ipfs-api/src/lib.rs
@@ -165,20 +165,10 @@ pub mod response;
#[cfg(feature = "actix")]
use actix_http::{encoding, Payload, PayloadStream};
-use futures::Stream;
#[cfg(feature = "hyper")]
use hyper::{self, client::HttpConnector};
#[cfg(feature = "hyper")]
use hyper_tls::HttpsConnector;
-use response::Error;
-
-/// A future that returns a stream of responses.
-///
-#[cfg(feature = "actix")]
-pub(crate) type AsyncStreamResponse<T> = Box<dyn Stream<Item = Result<T, Error>> + Unpin + 'static>;
-#[cfg(feature = "hyper")]
-pub(crate) type AsyncStreamResponse<T> =
- Box<dyn Stream<Item = Result<T, Error>> + Unpin + Send + 'static>;
#[cfg(feature = "actix")]
pub(crate) type Request = awc::ClientRequest;