You've already forked authentication-service
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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user