1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-27 10:39:03 +02:00

Change ttl to u32 (#35)

* Change TTL to u32

* Update CHANGES.md
This commit is contained in:
Omikuji
2020-04-03 16:19:21 +09:00
committed by GitHub
parent f4bcebdecd
commit f6686c9292
2 changed files with 3 additions and 1 deletions

View File

@ -47,7 +47,7 @@ impl RedisSession {
}
/// Set time to live in seconds for session value
pub fn ttl(mut self, ttl: u16) -> Self {
pub fn ttl(mut self, ttl: u32) -> Self {
Rc::get_mut(&mut self.0).unwrap().ttl = format!("{}", ttl);
self
}