add retry interval

This commit is contained in:
2022-03-09 22:50:31 +08:00
parent ade8486b3a
commit e9208700d9
14 changed files with 606 additions and 117 deletions

View File

@@ -135,3 +135,15 @@ impl ToJson for String {
Some(JsonValue::String(self.to_string()))
}
}
impl ToJson for JsonValue {
fn to_json(&self) -> Option<JsonValue> {
Some(self.clone())
}
}
impl ToJson for &JsonValue {
fn to_json(&self) -> Option<JsonValue> {
Some((*self).clone())
}
}