mirror of https://github.com/fafhrd91/actix-net
fix stream lifetime
This commit is contained in:
parent
39b75701ee
commit
0d146d06ec
|
@ -39,7 +39,7 @@ impl Clone for NativetlsConnector {
|
||||||
|
|
||||||
impl<T: Address, U> ServiceFactory<Connection<T, U>> for NativetlsConnector
|
impl<T: Address, U> ServiceFactory<Connection<T, U>> for NativetlsConnector
|
||||||
where
|
where
|
||||||
U: ActixStream,
|
U: ActixStream + 'static,
|
||||||
{
|
{
|
||||||
type Response = Connection<T, TlsStream<U>>;
|
type Response = Connection<T, TlsStream<U>>;
|
||||||
type Error = io::Error;
|
type Error = io::Error;
|
||||||
|
@ -59,7 +59,7 @@ where
|
||||||
impl<T, U> Service<Connection<T, U>> for NativetlsConnector
|
impl<T, U> Service<Connection<T, U>> for NativetlsConnector
|
||||||
where
|
where
|
||||||
T: Address,
|
T: Address,
|
||||||
U: ActixStream,
|
U: ActixStream + 'static,
|
||||||
{
|
{
|
||||||
type Response = Connection<T, TlsStream<U>>;
|
type Response = Connection<T, TlsStream<U>>;
|
||||||
type Error = io::Error;
|
type Error = io::Error;
|
||||||
|
|
Loading…
Reference in New Issue