diff --git a/src/core/system.cpp b/src/core/system.cpp index 9319ccd92..5fc3862cd 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -1635,7 +1635,7 @@ std::string System::get_metrics_prometheus() { }; // helper function to process a JSON object recursively - std::function process_object = [&](const JsonObject & obj, const std::string & prefix) { + std::function process_object = [&](const JsonObject obj, const std::string & prefix) { std::vector> local_info_labels; bool has_nested_objects = false;