Skip to content

Commit

Permalink
cleanup(metrics): fix build for emscripten etc
Browse files Browse the repository at this point in the history
Signed-off-by: Melissa Kilby <[email protected]>
  • Loading branch information
incertum committed Mar 13, 2024
1 parent 7dc9da5 commit 48ba138
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions userspace/falco/stats_writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,12 @@ class stats_writer
#ifndef __EMSCRIPTEN__
tbb::concurrent_bounded_queue<stats_writer::msg> m_queue;
#endif
std::shared_ptr<falco_outputs> m_outputs;
std::shared_ptr<const falco_configuration> m_config;
#if !defined(MINIMAL_BUILD) and !defined(__EMSCRIPTEN__)
std::unique_ptr<libs::metrics::libs_metrics_collector> m_libs_metrics_collector;
std::unique_ptr<libs::metrics::output_rule_metrics_converter> m_output_rule_metrics_converter;

#endif
std::shared_ptr<falco_outputs> m_outputs;
std::shared_ptr<const falco_configuration> m_config;
// note: in this way, only collectors can push into the queue
friend class stats_writer::collector;
};

0 comments on commit 48ba138

Please sign in to comment.