config hot reload update scheduler and hdhomerung implemented

This commit is contained in:
euzu
2025-06-25 18:39:25 +02:00
parent 644214ad9a
commit 6960a0c2dc
16 changed files with 321 additions and 140 deletions
+14
View File
@@ -42,6 +42,20 @@ pub fn generate_random_string(length: usize) -> String {
random_string
}
// compare 2 small vecs without HashSet
pub fn small_vecs_equal_unordered<T: PartialEq>(a: &[T], b: &[T]) -> bool {
if a.len() != b.len() {
return false;
}
for item in a {
if !b.iter().any(|x| x == item) {
return false;
}
}
true
}
pub fn get_non_empty_str<'a>(first: &'a str, second: &'a str, third: &'a str) -> &'a str {
if !first.is_empty() {
first