chore(userspace/engine): fix typos

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
Jason Dellaluce 2022-06-22 08:23:57 +00:00 committed by poiana
parent 978f192c38
commit c2a8efc329
2 changed files with 3 additions and 3 deletions

View File

@ -179,8 +179,8 @@ public:
// is safe to assume that each invoker will pass a different event
// to this method too, since two distinct sources cannot possibly produce
// the same event. Lastly, filterchecks and formatters (and their factories)
// that used to populate the conditions for a given event-source ruleset,
// must not be reused across rulesets of other event sources.
// that are used to populate the conditions for a given event-source
// ruleset must not be reused across rulesets of other event sources.
// These assumptions guarantee thread-safety because internally the engine
// is partitioned by event sources. However, each ruleset assigned to each
// event source is not thread-safe of its own, so invoking this method

View File

@ -84,7 +84,7 @@ void stats_manager::on_event(const falco_rule& rule)
if (m_by_rule_id.size() <= rule.id
|| m_by_priority.size() <= (size_t) rule.priority)
{
throw falco_exception("rule id or priority is out of boubnds");
throw falco_exception("rule id or priority out of bounds");
}
m_total.fetch_add(1, std::memory_order_relaxed);
m_by_rule_id[rule.id]->fetch_add(1, std::memory_order_relaxed);