mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-31 02:52:53 +01:00
reverting change to get_session due to side effects
This commit is contained in:
parent
73ae801a13
commit
32a66a99bf
@ -197,7 +197,7 @@ impl Session {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_session(extensions: &mut Extensions) -> Session {
|
fn get_session(extensions: &mut Extensions) -> Session {
|
||||||
if let Some(s_impl) = extensions.get::<Rc<RefCell<SessionInner>>>() {
|
if let Some(s_impl) = extensions.get::<Rc<RefCell<SessionInner>>>() {
|
||||||
return Session(Rc::clone(&s_impl));
|
return Session(Rc::clone(&s_impl));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user