feat(swqos): Add Soyas

This commit is contained in:
matt-soyas
2025-12-19 17:48:09 +08:00
parent 2bd5f4f82c
commit 413919340c
6 changed files with 235 additions and 18 deletions
+9 -3
View File
@@ -198,9 +198,15 @@ impl TradingClient {
let mut swqos_clients: Vec<Arc<SwqosClient>> = vec![];
for swqos in swqos_configs {
let swqos_client =
SwqosConfig::get_swqos_client(rpc_url.clone(), commitment.clone(), swqos.clone());
swqos_clients.push(swqos_client);
match SwqosConfig::get_swqos_client(rpc_url.clone(), commitment.clone(), swqos.clone())
.await
{
Ok(swqos_client) => swqos_clients.push(swqos_client),
Err(err) => eprintln!(
"failed to create {:?} swqos client: {err}. Excluding from swqos list",
swqos.swqos_type()
),
}
}
let rpc =