|
|
@@ -2,7 +2,6 @@ use hbb_common::{
|
|
2
|
2
|
allow_err,
|
|
3
|
3
|
bytes::{Bytes, BytesMut},
|
|
4
|
4
|
bytes_codec::BytesCodec,
|
|
5
|
|
- config,
|
|
6
|
5
|
futures_util::{
|
|
7
|
6
|
sink::SinkExt,
|
|
8
|
7
|
stream::{SplitSink, StreamExt},
|
|
|
@@ -74,7 +73,7 @@ impl PeerMap {
|
|
74
|
73
|
let mut db: String = "hbbs.db".to_owned();
|
|
75
|
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
|
77
|
db = format!("{}\\{}", path.to_str().unwrap_or("."), db);
|
|
79
|
78
|
}
|
|
80
|
79
|
}
|