Skip to content

Commit

Permalink
dnsdist: Fix clang-tidy warnings in dnsdist-dynblocks.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
rgacogne committed Jul 5, 2024
1 parent 528448e commit fcd35bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pdns/dnsdistdist/dnsdist-dynblocks.cc
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ void DynBlockMaintenance::run()

time_t now = time(nullptr);
auto purgeInterval = dnsdist::configuration::getCurrentRuntimeConfiguration().d_dynBlocksPurgeInterval;
time_t nextExpiredPurge = now + purgeInterval;
time_t nextExpiredPurge = now + static_cast<time_t>(purgeInterval);
time_t nextMetricsCollect = now + static_cast<time_t>(metricsCollectionInterval);
time_t nextMetricsGeneration = now + metricsGenerationInterval;

Expand Down Expand Up @@ -820,6 +820,7 @@ void DynBlockMaintenance::run()
warnlog("Error in the dynamic block maintenance thread: %s", e.what());
}
catch (...) {
vinfolog("Unhandled error in the dynamic block maintenance thread");
}
}
}
Expand Down

0 comments on commit fcd35bd

Please sign in to comment.