mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 10:27:42 +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:
@ -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
|
||||
|
Reference in New Issue
Block a user