]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Fix clang-tidy warnings in dnsdist-dynblocks.cc
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 24 Jun 2024 14:23:27 +0000 (16:23 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 15 Jul 2024 09:48:00 +0000 (11:48 +0200)
pdns/dnsdistdist/dnsdist-dynblocks.cc

index ee0367a06c92c2f68a042460273c6df9087383be..a8dbd28ffdf9991189fe5709780985135a8ccfc9 100644 (file)
@@ -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;
 
@@ -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");
     }
   }
 }