redis-types+spawn-blocking-fix
Some checks failed
deploy / deploy (push) Failing after 5s

This commit is contained in:
2024-09-23 16:32:54 +03:00
parent 336e46268c
commit ad6623a1b8
5 changed files with 507 additions and 432 deletions

View File

@@ -90,7 +90,7 @@ pub async fn user_added_file(
filename: &str,
) -> Result<(), actix_web::Error> {
redis
.sadd(user_id, filename)
.sadd::<&str, &str, ()>(user_id, filename)
.await
.map_err(|_| ErrorInternalServerError("Failed to save filename in Redis"))?; // Добавляем имя файла в набор пользователя
Ok(())