Replace repeated Mutex lock functions with a macro

This commit is contained in:
Ethan O'Brien
2024-11-02 12:09:35 -05:00
parent d9ce65df42
commit 7aaf22c923
6 changed files with 110 additions and 167 deletions

View File

@@ -93,7 +93,7 @@ async fn api_req(req: HttpRequest, body: String) -> HttpResponse {
"/api/event" => event::event(req, body),
"/api/event/star_event" => event::star_event(req, body),
"/api/event/set/member" => event::set_member(req, body),
"/api/event/ranking" => event::ranking(req, body),
"/api/event/ranking" => event::ranking(req, body).await,
"/api/event_star_live/change_target_music" => event::change_target_music(req, body),
"/api/event_star_live/start" => live::event_start(req, body),
"/api/event_star_live/end" => event::event_end(req, body),
@@ -135,7 +135,7 @@ async fn api_req(req: HttpRequest, body: String) -> HttpResponse {
"/api/gift" => home::gift_get(req),
"/api/purchase" => purchase::purchase(req),
"/api/friend/ids" => friend::ids(req),
"/api/live/clearRate" => clear_rate::clearrate(req),
"/api/live/clearRate" => clear_rate::clearrate(req).await,
"/api/mission" => mission::mission(req),
"/api/home" => home::home(req),
"/api/home/preset" => home::preset_get(req),