mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-24 08:53:04 +10:00
12 lines
298 B
Rust
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>,
|
|
}
|