mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2025-01-30 21:21:37 +00:00
Add danger-dummy-mode blurhash implementation
This commit is contained in:
parent
b5d0a0fe32
commit
ec9e21f318
1 changed files with 4 additions and 0 deletions
|
@ -26,6 +26,10 @@ pub(crate) async fn generate<S>(
|
||||||
where
|
where
|
||||||
S: Store + 'static,
|
S: Store + 'static,
|
||||||
{
|
{
|
||||||
|
if state.config.server.danger_dummy_mode {
|
||||||
|
return Ok(String::from("LGF5?xYk^6AAAAAAAAAAAAAAAAAA"));
|
||||||
|
}
|
||||||
|
|
||||||
let permit = crate::process_semaphore().acquire().await?;
|
let permit = crate::process_semaphore().acquire().await?;
|
||||||
|
|
||||||
let blurhash = do_generate(state, hash, original_details)
|
let blurhash = do_generate(state, hash, original_details)
|
||||||
|
|
Loading…
Reference in a new issue