fix stream lifetime

This commit is contained in:
Rob Ede 2021-03-26 23:51:50 +00:00
parent 39b75701ee
commit 0d146d06ec
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ impl Clone for NativetlsConnector {
impl<T: Address, U> ServiceFactory<Connection<T, U>> for NativetlsConnector
where
U: ActixStream,
U: ActixStream + 'static,
{
type Response = Connection<T, TlsStream<U>>;
type Error = io::Error;
@ -59,7 +59,7 @@ where
impl<T, U> Service<Connection<T, U>> for NativetlsConnector
where
T: Address,
U: ActixStream,
U: ActixStream + 'static,
{
type Response = Connection<T, TlsStream<U>>;
type Error = io::Error;