diff --git a/src/views.rs b/src/views.rs index 38d802a..11d1592 100644 --- a/src/views.rs +++ b/src/views.rs @@ -30,9 +30,7 @@ pub static TASK_RESULTS: Lazy> = Lazy::new(|| { .max_capacity(2048) .async_eviction_listener(|_key, value: Task, _reason| { Box::pin(async move { - if let Some(result_filename) = value.result_filename { - let _ = tokio::fs::remove_file(format!("/tmp/{}", result_filename)).await; - } + let _ = tokio::fs::remove_file(format!("/tmp/{}", value.id)).await; }) }) .build()