Files
drop/torrential/src/state.rs
T
2026-02-04 13:44:07 +11:00

12 lines
298 B
Rust

use std::{collections::HashMap, path::PathBuf, sync::Arc};
use dashmap::DashMap;
use tokio::sync::{OnceCell, Semaphore};
use crate::{DownloadContext, server::DropServer};
pub struct AppState {
pub context_cache: DashMap<(String, String), DownloadContext>,
pub server: Arc<DropServer>,
}