diff options
Diffstat (limited to 'transcoder/src/image.rs')
-rw-r--r-- | transcoder/src/image.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/transcoder/src/image.rs b/transcoder/src/image.rs index 7f52ff3..e1ba9b0 100644 --- a/transcoder/src/image.rs +++ b/transcoder/src/image.rs @@ -1,4 +1,4 @@ -use crate::LOCAL_TRANSCODING_TASKS; +use crate::LOCAL_IMAGE_TRANSCODING_TASKS; use anyhow::Context; use image::imageops::FilterType; use jellybase::{cache::async_cache_file, AssetLocationExt}; @@ -26,7 +26,7 @@ pub async fn transcode( &format!("{width} {quality} {speed}"), ], move |mut output| async move { - let _permit = LOCAL_TRANSCODING_TASKS.acquire().await?; + let _permit = LOCAL_IMAGE_TRANSCODING_TASKS.acquire().await?; info!("encoding {asset:?} (speed={speed}, quality={quality}, width={width})"); let encoded = tokio::task::spawn_blocking(move || { let original_path = asset.path(); |