fix: enforce only one instance of the app
All checks were successful
FanslySync Build & Test / FanslySync Test Runner (push) Successful in 11m51s

This commit is contained in:
Sticks
2025-04-23 20:20:39 -04:00
parent f4565ab580
commit d4d9d2ebce
5 changed files with 28 additions and 2 deletions

View File

@ -1,3 +1,4 @@
use crate::handlers::fansly::{SyncProgress, PROGRESS};
use crate::{
handlers::fansly::Fansly,
structs::{FanslyAccountResponse, FanslyBaseResponse, SyncDataResponse},
@ -5,7 +6,6 @@ use crate::{
use lazy_static::lazy_static;
use serde_json::Value;
use tokio::sync::Mutex;
use crate::handlers::fansly::{SyncProgress, PROGRESS};
lazy_static! {
static ref FANSLY: Mutex<Fansly> = Mutex::new(Fansly::new(None));