1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-27 09:12:57 +01:00
This commit is contained in:
Rob Ede 2022-07-21 00:07:49 +01:00
parent 140453c649
commit 4d2f4d58b4
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
4 changed files with 10 additions and 12 deletions

View File

@ -162,14 +162,12 @@ fn enforce_policies(req: &ServiceRequest, configuration: &Configuration) {
) {
identity.logout();
return;
} else {
if let Err(err) = identity.set_last_visited_at() {
tracing::warn!(
error.display = %err,
error.debug = ?err,
"Failed to set the last visited timestamp on `Identity` for an incoming request."
);
}
} else if let Err(err) = identity.set_last_visited_at() {
tracing::warn!(
error.display = %err,
error.debug = ?err,
"Failed to set the last visited timestamp on `Identity` for an incoming request."
);
}
}
}

View File

@ -103,14 +103,14 @@ impl TestApp {
}
}
#[derive(Serialize, Deserialize, Debug, PartialEq)]
#[derive(Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct EndpointResponse {
pub user_id: Option<String>,
pub counter: i32,
pub session_status: String,
}
#[derive(Serialize, Deserialize, Debug, PartialEq)]
#[derive(Debug, PartialEq, Eq, Serialize, Deserialize)]
struct LoginRequest {
user_id: String,
}

View File

@ -287,7 +287,7 @@ mod tests {
}
}
#[derive(Clone, PartialEq, Message)]
#[derive(Clone, PartialEq, Eq, Message)]
pub struct MyObject {
#[prost(int32, tag = "1")]
pub number: i32,

View File

@ -648,7 +648,7 @@ pub mod test_helpers {
);
}
#[derive(Serialize, Deserialize, Debug, PartialEq)]
#[derive(Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct IndexResponse {
user_id: Option<String>,
counter: i32,