feat: switch to multi-threaded Tokio runtime in sdxr_start for improved performance
This commit is contained in:
@@ -125,8 +125,8 @@ pub extern "C" fn sdxr_start(app_id: *const std::os::raw::c_char) -> i32 {
|
||||
let shared_state = Arc::new(Mutex::new(BridgeState::default()));
|
||||
let shared_for_commands = Arc::clone(&shared_state);
|
||||
|
||||
// Build a single-threaded Tokio runtime for the client
|
||||
let rt = tokio::runtime::Builder::new_current_thread()
|
||||
// Build a multi-threaded Tokio runtime for the client
|
||||
let rt = tokio::runtime::Builder::new_multi_thread()
|
||||
.enable_all()
|
||||
.build()
|
||||
.expect("tokio runtime");
|
||||
|
||||
Reference in New Issue
Block a user