[Clean]
This commit is contained in:
parent
e8faca34e2
commit
0990ccd526
16 changed files with 139 additions and 393 deletions
|
|
@ -50,12 +50,6 @@ pub async fn get_rho_by_iota(iota_id: i64) -> Option<Arc<RhoConnection>> {
|
|||
connections.get(&iota_id).map(Arc::clone)
|
||||
}
|
||||
|
||||
/// Get all active RhoConnections
|
||||
pub async fn get_all_connections() -> Vec<Arc<RhoConnection>> {
|
||||
let connections = RHO_CONNECTIONS.read().await;
|
||||
connections.values().map(Arc::clone).collect()
|
||||
}
|
||||
|
||||
/// Get the count of active connections
|
||||
pub async fn connection_count() -> usize {
|
||||
let connections = RHO_CONNECTIONS.read().await;
|
||||
|
|
|
|||
Loading…
Reference in a new issue