Skip to content

Commit

Permalink
conditionalGetHostUrlStr -> conditionalGetEndpointHostText
Browse files Browse the repository at this point in the history
  • Loading branch information
jakesmith committed Sep 22, 2023
1 parent 2e89e9f commit ad8d438
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/jlib/jsocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3889,7 +3889,7 @@ unsigned SocketEndpoint::hash(unsigned prev) const
}


StringBuffer &conditionalGetHostUrlStr(StringBuffer &str, const SocketEndpoint &ep)
StringBuffer &conditionalGetEndpointHostText(StringBuffer &str, const SocketEndpoint &ep)
{
if (isContainerized())
return ep.getEndpointIpText(str);
Expand Down
2 changes: 1 addition & 1 deletion system/jlib/jsocket.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class jlib_decl SocketEndpoint : extends IpAddress

// Conditionally return endpoint hostname or resolved IP (may want condition to differ in future, e.g. depending on dns configuration)
// In k8s by default pod hostnames are not resolvable from other pods, use this function when serializing the text of a host to another host
extern jlib_decl StringBuffer &conditionalGetHostUrlStr(StringBuffer &str, const SocketEndpoint &ep);
extern jlib_decl StringBuffer &conditionalGetEndpointHostText(StringBuffer &str, const SocketEndpoint &ep);

class jlib_decl SocketEndpointArray : public StructArrayOf<SocketEndpoint>
{
Expand Down

0 comments on commit ad8d438

Please sign in to comment.