mirror of
https://github.com/actix/examples
synced 2025-06-26 09:17:41 +02:00
add session ttl customization example
This commit is contained in:
@ -24,9 +24,7 @@ async fn main() -> std::io::Result<()> {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use actix_web::body::to_bytes;
|
||||
use actix_web::dev::Service;
|
||||
use actix_web::{http, test, web, App, Error};
|
||||
use actix_web::{body::to_bytes, dev::Service, http, test, web, App, Error};
|
||||
|
||||
use super::*;
|
||||
|
||||
|
@ -18,10 +18,14 @@
|
||||
//!
|
||||
//! Check [user guide](https://actix.rs/docs/application/#state) for more info.
|
||||
|
||||
use std::cell::Cell;
|
||||
use std::io;
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
use std::sync::Mutex;
|
||||
use std::{
|
||||
cell::Cell,
|
||||
io,
|
||||
sync::{
|
||||
atomic::{AtomicUsize, Ordering},
|
||||
Mutex,
|
||||
},
|
||||
};
|
||||
|
||||
use actix_web::{
|
||||
middleware,
|
||||
|
Reference in New Issue
Block a user