use a btreeset for both host sets

This commit is contained in:
Charlotte Som 2024-11-27 04:52:08 +02:00
parent 4376d4a2e0
commit e1ca7eba42

View file

@ -1,4 +1,4 @@
use std::collections::{BTreeSet, HashSet};
use std::collections::BTreeSet;
use anyhow::Result;
use bytes::Bytes;
@ -11,7 +11,7 @@ pub struct RelayServer {
pub db_users: sled::Tree,
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 raw_block_tx: broadcast::Sender<Bytes>,