mirror of
https://github.com/fluencelabs/redis
synced 2025-06-24 06:21:32 +00:00
AnetFormatIP(): renamed, commented, now sticks to IP:port format.
A few code style changes + consistent format: not nice for humans but better for parsers.
This commit is contained in:
@ -908,7 +908,7 @@ sentinelRedisInstance *createSentinelRedisInstance(char *name, int flags, char *
|
||||
|
||||
/* For slaves and sentinel we use ip:port as name. */
|
||||
if (flags & (SRI_SLAVE|SRI_SENTINEL)) {
|
||||
anetFormatIP(slavename, sizeof(slavename), hostname, port);
|
||||
anetFormatAddr(slavename, sizeof(slavename), hostname, port);
|
||||
name = slavename;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user