recycleactor commited on
Commit
af7c1fe
·
verified ·
1 Parent(s): 2bfd3a5

Upload main.rs

Browse files
Files changed (1) hide show
  1. src/main.rs +2 -1
src/main.rs CHANGED
@@ -47,7 +47,8 @@ struct CdnCacheEntry {
47
  expires_at: std::time::Instant,
48
  }
49
 
50
- struct AppState {
 
51
  api: Arc<Mutex<APIClient>>,
52
  api_by_arl: Arc<RwLock<HashMap<String, Arc<Mutex<APIClient>>>>>,
53
  arl_sessions: Arc<RwLock<HashMap<String, ArlSession>>>,
 
47
  expires_at: std::time::Instant,
48
  }
49
 
50
+ #[derive(Clone)]
51
+ struct AppState {
52
  api: Arc<Mutex<APIClient>>,
53
  api_by_arl: Arc<RwLock<HashMap<String, Arc<Mutex<APIClient>>>>>,
54
  arl_sessions: Arc<RwLock<HashMap<String, ArlSession>>>,