mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-25 20:30:47 +00:00
refactor: very minor improvement
Signed-off-by: Federico Aponte <federico.aponte@sysdig.com>
This commit is contained in:
@@ -488,8 +488,7 @@ falco::app::run_result falco::app::actions::process_events(falco::app::state& s)
|
|||||||
ctxs.reserve(s.enabled_sources.size());
|
ctxs.reserve(s.enabled_sources.size());
|
||||||
for (const auto& source : s.enabled_sources)
|
for (const auto& source : s.enabled_sources)
|
||||||
{
|
{
|
||||||
ctxs.emplace_back();
|
auto& ctx = ctxs.emplace_back();
|
||||||
auto& ctx = ctxs[ctxs.size() - 1];
|
|
||||||
ctx.source = source;
|
ctx.source = source;
|
||||||
ctx.sync.reset(new source_sync_context(termination_sem));
|
ctx.sync.reset(new source_sync_context(termination_sem));
|
||||||
auto src_info = s.source_infos.at(source);
|
auto src_info = s.source_infos.at(source);
|
||||||
|
Reference in New Issue
Block a user