feat: make_request_sync now uses tokio instead of futures

This commit is contained in:
2026-01-02 03:33:20 +03:00
parent fdb79e609f
commit ac667f1273
3 changed files with 3 additions and 49 deletions
+3 -1
View File
@@ -24,7 +24,9 @@ pub fn get_gui_config() -> GuiConfig {
}
pub fn make_request_sync(request: Request) -> Result<Response, Box<dyn Error>> {
futures::executor::block_on(make_request(request))
tokio::task::block_in_place(|| {
tokio::runtime::Handle::current().block_on(make_request(request))
})
}
pub fn format_time_pair(position: f32, duration: f32) -> String {