Feature/fix count() (#327)

This commit is contained in:
James Takai / hach1yon
2021-12-22 09:10:28 +09:00
committed by GitHub
parent 2e37e17300
commit ea685fb75a
5 changed files with 820 additions and 442 deletions

View File

@@ -131,7 +131,11 @@ impl Detection {
return self;
}
pub fn add_aggcondition_msg(&self) {
pub fn add_aggcondition_msges(self, rt: &Runtime) {
return rt.block_on(self.add_aggcondition_msg());
}
async fn add_aggcondition_msg(&self) {
for rule in &self.rules {
if !rule.has_agg_condition() {
continue;