Skip to content

Commit

Permalink
Update transport, fix metrics to use shared ptr, and add go for macos…
Browse files Browse the repository at this point in the history
… build
  • Loading branch information
TimEvens committed Apr 28, 2024
1 parent 1dc747d commit e715dee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- name: Install Packages (macOS)
run: |
brew install pkg-config llvm
brew install pkg-config llvm go
ln -s "$(brew --prefix llvm)/bin/clang-tidy" "/usr/local/bin/clang-tidy"
brew install google-benchmark
if: matrix.os == 'macos-latest'
Expand Down
2 changes: 1 addition & 1 deletion dependencies/transport
4 changes: 2 additions & 2 deletions src/metrics_exporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ namespace quicr {
MetricsExporter::MetricsExporter(const cantina::LoggerPointer& logger) :
logger(std::make_shared<cantina::Logger>("MExport", logger))
{
metrics_conn_samples = std::make_unique<safe_queue<MetricsConnSample>>(MAX_METRICS_SAMPLES_QUEUE);
metrics_data_samples = std::make_unique<safe_queue<MetricsDataSample>>(MAX_METRICS_SAMPLES_QUEUE);
metrics_conn_samples = std::make_shared<safe_queue<MetricsConnSample>>(MAX_METRICS_SAMPLES_QUEUE);
metrics_data_samples = std::make_shared<safe_queue<MetricsDataSample>>(MAX_METRICS_SAMPLES_QUEUE);
}

MetricsExporter::~MetricsExporter() {
Expand Down

0 comments on commit e715dee

Please sign in to comment.