1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-27 09:12:57 +01:00

Misc tidy up (#400)

This commit is contained in:
John Vandenberg 2024-02-14 09:19:29 +08:00 committed by GitHub
parent 2e0cbb8bbb
commit daffc24245
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 9 additions and 6 deletions

View File

@ -47,7 +47,7 @@ async fn main() {
// order of registration when it receives an incoming request.
.wrap(SessionMiddleware::new(
redis_store.clone(),
secret_key.clone()
secret_key.clone(),
))
// Your request handlers [...]
})
@ -95,7 +95,7 @@ By default, `actix-identity` does not automatically log out users. You can chang
In particular, you can automatically log out users who:
- have been inactive for a while (see [`IdentityMiddlewareBuilder::visit_deadline`];
- have been inactive for a while (see [`IdentityMiddlewareBuilder::visit_deadline`]);
- logged in too long ago (see [`IdentityMiddlewareBuilder::login_deadline`]).
[`IdentityMiddlewareBuilder::visit_deadline`]: config::IdentityMiddlewareBuilder::visit_deadline

View File

@ -85,7 +85,7 @@ By default, `actix-identity` does not automatically log out users. You can chang
by customising the configuration for [`IdentityMiddleware`] via [`IdentityMiddleware::builder`].
In particular, you can automatically log out users who:
- have been inactive for a while (see [`IdentityMiddlewareBuilder::visit_deadline`];
- have been inactive for a while (see [`IdentityMiddlewareBuilder::visit_deadline`]);
- logged in too long ago (see [`IdentityMiddlewareBuilder::login_deadline`]).
[`IdentityMiddlewareBuilder::visit_deadline`]: config::IdentityMiddlewareBuilder::visit_deadline

View File

@ -53,7 +53,7 @@ where
forward_ready!(service);
fn call(&self, req: ServiceRequest) -> Self::Future {
// A mis-configuration of the Actix App will result in a **runtime** failure, so the expect
// A misconfiguration of the Actix App will result in a **runtime** failure, so the expect
// method description is important context for the developer.
let limiter = req
.app_data::<web::Data<Limiter>>()

View File

@ -38,7 +38,7 @@ To start using sessions in your Actix Web application you must register [`Sessio
```rust
use actix_web::{web, App, HttpServer, HttpResponse, Error};
use actix_session::{Session, SessionMiddleware, storage::RedisActorSessionStore};
use actix_session::{Session, SessionMiddleware, storage::RedisSessionStore};
use actix_web::cookie::Key;
#[actix_web::main]

View File

@ -1,3 +1,6 @@
# depends on:
# - https://crates.io/crates/fd-find
# - https://crates.io/crates/cargo-check-external-types
_list:
@just --list