Skip to content

Commit

Permalink
[OMON-722] Do not use C++20 auto function parameter (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
awegrzyn authored Oct 20, 2023
1 parent 2f917a2 commit 2b4b5a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ endif()

# Define project
project(Monitoring
VERSION 3.17.4
VERSION 3.17.5
DESCRIPTION "O2 Monitoring library"
LANGUAGES CXX
)
Expand Down
4 changes: 2 additions & 2 deletions examples/16-AliECS.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ using namespace o2::monitoring;
class AliEcsClient {
public:
AliEcsClient(std::shared_ptr<Channel> channel) : mStub(o2control::Control::NewStub(channel)) {}
void sendRunDetails(const auto& influxBackend) {
void sendRunDetails(backends::InfluxDB* const influxBackend) {
o2control::GetEnvironmentsRequest request;
request.set_showall(false);
request.set_showtaskinfos(false);
Expand Down Expand Up @@ -80,7 +80,7 @@ int main(int argc, char* argv[]) {
httpTransport->addHeader("Authorization: Token " + vm["influxdb-token"].as<std::string>());
auto influxdbBackend = std::make_unique<backends::InfluxDB>(std::move(httpTransport));
for (;;) {
client.sendRunDetails(influxdbBackend);
client.sendRunDetails(influxdbBackend.get());
std::this_thread::sleep_for(std::chrono::seconds(15));
}
}

0 comments on commit 2b4b5a7

Please sign in to comment.