mirror of
https://github.com/stakwork/sphinx-key.git
synced 2025-12-17 07:14:23 +01:00
new clients are added first
This commit is contained in:
@@ -21,7 +21,8 @@ impl Connections {
|
||||
pub fn add_client(&mut self, cid: &str) {
|
||||
let cids = cid.to_string();
|
||||
if !self.clients.contains(&cids) {
|
||||
self.clients.push(cids)
|
||||
// new client is added to beginning of Vec
|
||||
self.clients.insert(0, cids);
|
||||
}
|
||||
}
|
||||
pub fn remove_client(&mut self, cid: &str) {
|
||||
|
||||
Reference in New Issue
Block a user