This is an automated email from the ASF dual-hosted git repository.

lordgamez pushed a commit to branch MINIFICPP-2152
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git

commit fd412505bedafbbc5f378980ed88367912979045
Author: Gabor Gyimesi <gamezb...@gmail.com>
AuthorDate: Wed Aug 2 10:35:32 2023 +0200

    Review update
---
 libminifi/src/utils/net/DNS.cpp | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/libminifi/src/utils/net/DNS.cpp b/libminifi/src/utils/net/DNS.cpp
index 9823bc5dd..7af353124 100644
--- a/libminifi/src/utils/net/DNS.cpp
+++ b/libminifi/src/utils/net/DNS.cpp
@@ -16,10 +16,6 @@
  */
 #include "utils/net/DNS.h"
 
-#ifndef WIN32
-#include <cstring>
-#endif /* WIN32 */
-
 #include "Exception.h"
 #include "utils/StringUtils.h"
 #include "utils/net/AsioCoro.h"
@@ -63,8 +59,7 @@ nonstd::expected<std::string, std::error_code> 
reverseDnsLookup(const asio::ip::
 }
 
 std::string getMyHostName() {
-  static const std::string HOSTNAME = asio::ip::host_name();
-  return HOSTNAME;
+  return asio::ip::host_name();
 }
 
 }  // namespace org::apache::nifi::minifi::utils::net

Reply via email to