feat: optimize regex match to reduce memory consumption

Signed-off-by: sisungo <[email protected]>
This commit is contained in:
sisungo committed 2026-10-25 03:56:23 +00:00
1 parent bbf4250677
commit 42f3f40755
6 files changed
+71 -34

No files matched your search

+3 -1
View File
@@ -241,7 +241,9 @@ pub async fn get_device(name: &str) -> DbSection {
}
pub fn sync_db() {
DB.save();
if let Err(err) = DB.save() {
tracing::error!("db sync failure: {err}");
}
}
fn dev_root() -> PathBuf {