From 0bee4db270a89d85db3522d1b6885f442d57dfda Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Sun, 13 Jan 2019 23:30:42 -0800 Subject: [PATCH] use new service converter --- actix-utils/src/stream.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/actix-utils/src/stream.rs b/actix-utils/src/stream.rs index 271aae069..7be9ccb90 100644 --- a/actix-utils/src/stream.rs +++ b/actix-utils/src/stream.rs @@ -43,15 +43,9 @@ where T::Service: 'static, >>::Future: 'static, { - // pub fn new>>(factory: F) -> Self { - // Self { - // factory: Rc::new(factory.into_new_service()), - // _t: PhantomData, - // } - // } - pub fn new(factory: T) -> Self { + pub fn new>>(factory: F) -> Self { Self { - factory: Rc::new(factory), + factory: Rc::new(factory.into_new_service()), _t: PhantomData, } }