Skip to content

Commit

Permalink
[OMON-722] Do not use C++20 auto function parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
awegrzyn committed Oct 20, 2023
1 parent 2f917a2 commit 329987d
Showing 1 changed file with 2 additions and 2 deletions.
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 329987d

Please sign in to comment.