MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / announceSentinelAddr

Function announceSentinelAddr

src/sentinel.cpp:655–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653}
654
655const char *announceSentinelAddr(const sentinelAddr *a) {
656 return sentinel.announce_hostnames ? a->hostname : a->ip;
657}
658
659/* Return an allocated sds with hostname/address:port. IPv6
660 * addresses are bracketed the same way anetFormatAddr() does.

Callers 12

sentinelEventFunction · 0.85
sentinelSendHelloFunction · 0.85
sentinelCommandFunction · 0.85
sentinelInfoCommandFunction · 0.85
sentinelSendSlaveOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected