From 81cb54bc232518534a8b58c35021313828ab5003 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Tue, 31 Oct 2023 16:46:11 +0100 Subject: [PATCH] background_jobs: Simplify `index` field --- src/background_jobs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/background_jobs.rs b/src/background_jobs.rs index 668e01d48ae..e768ded0e94 100644 --- a/src/background_jobs.rs +++ b/src/background_jobs.rs @@ -317,7 +317,7 @@ pub struct RenderAndUploadReadmeJob { } pub struct Environment { - index: Arc>, + index: Mutex, http_client: AssertUnwindSafe, cloudfront: Option, fastly: Option, @@ -333,7 +333,7 @@ impl Environment { storage: Arc, ) -> Self { Self { - index: Arc::new(Mutex::new(index)), + index: Mutex::new(index), http_client: AssertUnwindSafe(http_client), cloudfront, fastly,