feat: show server url (#3956)

* chore: data folder for cloud

* chore: display server url

* chore: fix test
This commit is contained in:
Nathan.fooo
2023-11-17 15:38:56 +08:00
committed by GitHub
parent 4a1a143a66
commit 8179419f8b
42 changed files with 425 additions and 313 deletions

View File

@ -16,7 +16,6 @@ const DB_NAME: &str = "cache.db";
pub struct StorePreferences {
database: Option<Database>,
}
impl StorePreferences {
#[tracing::instrument(level = "trace", err)]
pub fn new(root: &str) -> Result<Self, anyhow::Error> {
@ -86,7 +85,6 @@ impl StorePreferences {
.and_then(|v| serde_json::from_str(&v).ok())
}
#[allow(dead_code)]
pub fn remove(&self, key: &str) {
if let Some(conn) = self
.database