Expose method to check for v2 as well

This commit is contained in:
Damien Elmes 2023-10-27 02:47:04 +10:00
parent 96aab939aa
commit 3ebc6ac68a

View File

@ -214,6 +214,10 @@ impl Collection {
.unwrap_or(SchedulerVersion::V1)
}
pub fn v2_enabled(&self) -> bool {
self.scheduler_version() == SchedulerVersion::V2
}
pub fn v3_enabled(&self) -> bool {
self.scheduler_version() == SchedulerVersion::V2 && self.get_config_bool(BoolKey::Sched2021)
}