open-trade лет назад: 4
Родитель
Сommit
8866360e59
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      src/rendezvous_server.rs

+ 1 - 2
src/rendezvous_server.rs

@@ -2,7 +2,6 @@ use hbb_common::{
2
     allow_err,
2
     allow_err,
3
     bytes::{Bytes, BytesMut},
3
     bytes::{Bytes, BytesMut},
4
     bytes_codec::BytesCodec,
4
     bytes_codec::BytesCodec,
5
-    config,
6
     futures_util::{
5
     futures_util::{
7
         sink::SinkExt,
6
         sink::SinkExt,
8
         stream::{SplitSink, StreamExt},
7
         stream::{SplitSink, StreamExt},
@@ -74,7 +73,7 @@ impl PeerMap {
74
         let mut db: String = "hbbs.db".to_owned();
73
         let mut db: String = "hbbs.db".to_owned();
75
         #[cfg(windows)]
74
         #[cfg(windows)]
76
         {
75
         {
77
-            if let Some(path) = config::Config::icon_path().parent() {
76
+            if let Some(path) = hbb_common::config::Config::icon_path().parent() {
78
                 db = format!("{}\\{}", path.to_str().unwrap_or("."), db);
77
                 db = format!("{}\\{}", path.to_str().unwrap_or("."), db);
79
             }
78
             }
80
         }
79
         }