Implementing "local_clean" command.

This commit is contained in:
2021-02-25 23:28:09 +01:00
parent 640954ab5a
commit 3d316921e1
9 changed files with 211 additions and 13 deletions

View File

@@ -29,6 +29,10 @@ impl Metric {
&self.name
}
pub fn updated_on(self: &Self) -> u64 {
self.updated_on
}
pub fn config(self: &Self, name: String) -> Result<String, String> {
let res = self.config.get(&name);
if let Some(v) = res {