1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-29 22:01:14 +03:00

storage: ensure the repository trait can be boxed

and define some wrappers to map the errors
This commit is contained in:
Quentin Gliech
2023-01-19 19:10:35 +01:00
parent 876bc9fcb3
commit f4c64c2171
23 changed files with 801 additions and 142 deletions

View File

@ -35,7 +35,8 @@ impl Task for CleanupExpired {
async fn run(&self) {
let res = async move {
let mut repo = PgRepository::from_pool(&self.0).await?;
repo.oauth2_access_token().cleanup_expired(&self.1).await
let res = repo.oauth2_access_token().cleanup_expired(&self.1).await;
res
}
.await;