Просмотр исходного кода

darkirc: Remove server_store reference

x 1 месяц назад
Родитель
Сommit
4e127fc6c3
1 измененных файлов с 0 добавлено и 6 удалено
  1. 0 6
      bin/darkirc/src/irc/server.rs

+ 0 - 6
bin/darkirc/src/irc/server.rs

@@ -226,8 +226,6 @@ pub struct IrcServer {
     clients: Mutex<HashMap<u16, StoppableTaskPtr>>,
     /// IRC server Password
     pub password: String,
-    /// Persistent server storage
-    pub server_store: sled::Tree,
 }
 
 impl IrcServer {
@@ -277,9 +275,6 @@ impl IrcServer {
             _ => None,
         };
 
-        // Open persistent dbs
-        let server_store = darkirc.sled.open_tree("server_store")?;
-
         // Set the default RLN account if any
         let rln_identity = load_default_rln_identity(&darkirc.sled).await?;
         if rln_identity.is_some() {
@@ -298,7 +293,6 @@ impl IrcServer {
             pending_static_broadcasts: Mutex::new(Vec::new()),
             clients: Mutex::new(HashMap::new()),
             password,
-            server_store,
         });
 
         // Load any channel/contact configuration.