Skip to content

Commit

Permalink
Review update
Browse files Browse the repository at this point in the history
  • Loading branch information
lordgamez committed Aug 2, 2023
1 parent 1081ccf commit 9ddaa71
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions libminifi/src/utils/net/DNS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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

0 comments on commit 9ddaa71

Please sign in to comment.