Adapt code to new flags structure

This commit is contained in:
F. Levi
2024-10-20 10:18:09 +03:00
parent 5db9105f61
commit ab8a1bcd1c
3 changed files with 23 additions and 17 deletions

View File

@ -314,14 +314,14 @@ impl Action {
SETTINGS_UPDATE => Some(Self::SettingsUpdate),
SETTINGS_ALL => Some(Self::SettingsAll),
STATS_GET => Some(Self::StatsGet),
// @TODO: Issue: Since stats has only one element, all is the same as the one single element
// TODO: Issue: Since stats has only one element, all is the same as the one single element
// so this will never match all, because it matches that one and only element first
STATS_ALL => Some(Self::StatsAll),
METRICS_GET => Some(Self::MetricsGet),
// @TODO: Same
// TODO: Same
METRICS_ALL => Some(Self::MetricsAll),
DUMPS_CREATE => Some(Self::DumpsCreate),
// @TODO: Same
// TODO: Same
DUMPS_ALL => Some(Self::DumpsAll),
SNAPSHOTS_CREATE => Some(Self::SnapshotsCreate),
VERSION => Some(Self::Version),
@ -332,7 +332,7 @@ impl Action {
EXPERIMENTAL_FEATURES_GET => Some(Self::ExperimentalFeaturesGet),
EXPERIMENTAL_FEATURES_UPDATE => Some(Self::ExperimentalFeaturesUpdate),
ALL => Some(Self::All),
_otherwise => None,
_ => None,
}
}