]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Reformat
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 26 Jan 2022 10:37:18 +0000 (11:37 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 4 Feb 2022 10:06:17 +0000 (11:06 +0100)
pdns/recursordist/rec-main.cc
pdns/recursordist/rec-main.hh

index 79342bbf8afa9d8cac16b4581d59ed5340c859ce..4a98bbc0dee9c67a4beabba76b4c006438db773a 100644 (file)
@@ -847,7 +847,6 @@ static void loggerBackend(const Logging::Entry& entry)
   g_log << u << buf.str() << endl;
 }
 
-
 static int ratePercentage(uint64_t nom, uint64_t denom)
 {
   if (denom == 0) {
@@ -1054,7 +1053,7 @@ void broadcastFunction(const pipefunc_t& func)
 
   unsigned int n = 0;
   for (const auto& threadInfo : RecThreadInfo::infos()) {
-    if (n++ ==  RecThreadInfo::id()) {
+    if (n++ == RecThreadInfo::id()) {
       func(); // don't write to ourselves!
       continue;
     }
@@ -1535,7 +1534,7 @@ static int serviceMain(int argc, char* argv[])
     if (RecThreadInfo::weDistributeQueries()) {
       /* first thread is the handler, then distributors */
       for (unsigned int threadId = 1; threadId <= RecThreadInfo::numDistributors(); threadId++) {
-        auto& info =  RecThreadInfo::info(threadId);
+        auto& info = RecThreadInfo::info(threadId);
         auto& deferredAdds = info.deferredAdds;
         auto& tcpSockets = info.tcpSockets;
         makeUDPServerSockets(deferredAdds);
@@ -1545,7 +1544,7 @@ static int serviceMain(int argc, char* argv[])
     else {
       /* first thread is the handler, there is no distributor here and workers are accepting queries */
       for (unsigned int threadId = 1; threadId <= RecThreadInfo::numWorkers(); threadId++) {
-        auto& info =  RecThreadInfo::info(threadId);
+        auto& info = RecThreadInfo::info(threadId);
         auto& deferredAdds = info.deferredAdds;
         auto& tcpSockets = info.tcpSockets;
         makeUDPServerSockets(deferredAdds);
index 01d375e4ea4a5182914bcc72f9ac0d8746db4097..650df429b58566e58f81d8e531d0f90fb140b6c2 100644 (file)
@@ -480,8 +480,6 @@ struct ThreadMSG
   bool wantAnswer;
 };
 
-
-
 PacketBuffer GenUDPQueryResponse(const ComboAddress& dest, const string& query);
 bool checkProtobufExport(LocalStateHolder<LuaConfigItems>& luaconfsLocal);
 bool checkOutgoingProtobufExport(LocalStateHolder<LuaConfigItems>& luaconfsLocal);