use a btreeset for both host sets
This commit is contained in:
parent
4376d4a2e0
commit
e1ca7eba42
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
use std::collections::{BTreeSet, HashSet};
|
use std::collections::BTreeSet;
|
||||||
|
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use bytes::Bytes;
|
use bytes::Bytes;
|
||||||
|
@ -11,7 +11,7 @@ pub struct RelayServer {
|
||||||
pub db_users: sled::Tree,
|
pub db_users: sled::Tree,
|
||||||
|
|
||||||
pub known_good_hosts: Mutex<BTreeSet<String>>,
|
pub known_good_hosts: Mutex<BTreeSet<String>>,
|
||||||
pub active_indexers: Mutex<HashSet<String>>,
|
pub active_indexers: Mutex<BTreeSet<String>>,
|
||||||
|
|
||||||
pub event_tx: mpsc::Sender<StreamEvent>,
|
pub event_tx: mpsc::Sender<StreamEvent>,
|
||||||
pub raw_block_tx: broadcast::Sender<Bytes>,
|
pub raw_block_tx: broadcast::Sender<Bytes>,
|
||||||
|
|
Loading…
Reference in a new issue