1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 18:37:41 +02:00

Update actix-redis' dependencies (#24)

* Update actix-redis's dependencies

* Change `chrono::Duration` to `time::Duration` in the docs

* Remove unneeded comment

* Update CHANGES.md
This commit is contained in:
kevinpoitra
2020-03-15 03:54:35 -04:00
committed by GitHub
parent d913550570
commit 79dc7fcaff
5 changed files with 21 additions and 12 deletions

View File

@ -522,7 +522,7 @@ impl CookieIdentityPolicy {
self.max_age_time(Duration::seconds(seconds))
}
/// Sets the `max-age` field in the session cookie being built with `chrono::Duration`.
/// Sets the `max-age` field in the session cookie being built with `time::Duration`.
pub fn max_age_time(mut self, value: Duration) -> CookieIdentityPolicy {
Rc::get_mut(&mut self.0).unwrap().max_age = Some(value);
self