Skip to content

Commit

Permalink
Test attributes: fixing wrongful lambda capture
Browse files Browse the repository at this point in the history
constexpr doesn't need to be captured. failed ci/cd
  • Loading branch information
felixjulianheitmann committed Oct 8, 2024
1 parent 729851c commit c8792f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_attributes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ TEST_CASE("attribute test - multi threaded") {
// put attributes with multiple threads simultaneously
std::vector<std::future<void>> tasks;
for (unsigned int i = 0; i < n_tasks; ++i) {
auto task = std::async([&logger, i, n_values] {
auto task = std::async([&logger, i] {
for (auto j = 0; j < n_values; ++j)
logger.attrs().put(fmt_lib::format("log_{}_key_{}", i, j), fmt_lib::format("log_{}_value_{}", i, j));
});
Expand Down

0 comments on commit c8792f6

Please sign in to comment.