feat: optimize regex match to reduce memory consumption
Signed-off-by: sisungo <[email protected]>
This commit is contained in:
1 parent
bbf4250677
commit
42f3f40755
6 files changed
+71
-34
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user