fix(gifs): fetch featured category previews concurrently (#3117)

This commit is contained in:
Hampus
2026-10-02 17:22:30 +02:00
committed by GitHub
parent 237aff666d
commit 87df92e2c2
4 changed files with 115 additions and 26 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ use tokio::sync::{Semaphore, TryAcquireError};
use tokio::task::JoinSet;
use tracing::{debug, info, warn};
pub(crate) const SHARD_REQUEST_TIMEOUT: Duration = Duration::from_secs(5);
pub const SHARD_REQUEST_TIMEOUT: Duration = Duration::from_secs(5);
const MAX_BROADCAST_CONCURRENCY: usize = 32;
const MAX_ROUTER_REQUEST_BYTES: usize = 2 * 1024 * 1024;
const LEGACY_SHARD_DECODE_ERROR: &[u8] = br#"{"error":"shard_request_decode_error"}"#;