mirror of
https://github.com/telemt/telemt.git
synced 2026-05-02 01:44:10 +03:00
Dashmap-driven Routing + Health Parallel + Family Runtime State
Co-Authored-By: brekotis <93345790+brekotis@users.noreply.github.com>
This commit is contained in:
@@ -202,15 +202,6 @@ impl FamilyHealthSnapshot {
|
||||
}
|
||||
|
||||
impl MeFamilyRuntimeState {
|
||||
pub(crate) fn from_u8(value: u8) -> Self {
|
||||
match value {
|
||||
1 => Self::Degraded,
|
||||
2 => Self::Suppressed,
|
||||
3 => Self::Recovering,
|
||||
_ => Self::Healthy,
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn as_str(self) -> &'static str {
|
||||
match self {
|
||||
Self::Healthy => "healthy",
|
||||
@@ -852,12 +843,11 @@ impl MePool {
|
||||
}
|
||||
|
||||
pub(super) fn notify_writer_epoch(&self) {
|
||||
let _ = self.writer_epoch.send_modify(|epoch| {
|
||||
self.writer_epoch.send_modify(|epoch| {
|
||||
*epoch = epoch.wrapping_add(1);
|
||||
});
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub(super) fn set_family_runtime_state(
|
||||
&self,
|
||||
family: IpFamily,
|
||||
|
||||
Reference in New Issue
Block a user