From f588830e245a0b1a564a01ad9965c4a5780706d0 Mon Sep 17 00:00:00 2001 From: Arthur Passos Date: Wed, 12 Oct 2022 20:35:17 -0300 Subject: [PATCH] working on style --- src/Common/CaresPTRResolver.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Common/CaresPTRResolver.cpp b/src/Common/CaresPTRResolver.cpp index cf0e1661322..a3eeb3d24ad 100644 --- a/src/Common/CaresPTRResolver.cpp +++ b/src/Common/CaresPTRResolver.cpp @@ -114,18 +114,18 @@ namespace DB int sockets[ARES_GETSOCK_MAXNUM]; pollfd pollfd[ARES_GETSOCK_MAXNUM]; - while(true) + while (true) { auto readable_sockets = get_readable_sockets(sockets, pollfd); auto timeout = calculate_timeout(); int number_of_fds_ready = 0; - if(!readable_sockets.empty()) + if (!readable_sockets.empty()) { number_of_fds_ready = poll(readable_sockets.data(), readable_sockets.size(), timeout); } - if(number_of_fds_ready > 0) + if (number_of_fds_ready > 0) { process_readable_sockets(readable_sockets); } @@ -143,7 +143,7 @@ namespace DB int number_of_sockets_to_poll = 0; - for(int i = 0; i < ARES_GETSOCK_MAXNUM; i++, number_of_sockets_to_poll++) + for (int i = 0; i < ARES_GETSOCK_MAXNUM; i++, number_of_sockets_to_poll++) { pollfd[i].events = 0; pollfd[i].revents = 0;