mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
Unexport helper command
This commit is contained in:
10
sentinel.go
10
sentinel.go
@ -317,16 +317,6 @@ func (c *SentinelClient) GetMasterAddrByName(ctx context.Context, name string) *
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *SentinelClient) GetSlavesAddrByName(ctx context.Context, name string) []string {
|
||||
addrs, err := c.Slaves(ctx, name).Result()
|
||||
if err != nil {
|
||||
internal.Logger.Printf(ctx, "sentinel: Slaves name=%q failed: %s",
|
||||
name, err)
|
||||
return []string{}
|
||||
}
|
||||
return parseSlaveAddrs(addrs, false)
|
||||
}
|
||||
|
||||
func (c *SentinelClient) Sentinels(ctx context.Context, name string) *SliceCmd {
|
||||
cmd := NewSliceCmd(ctx, "sentinel", "sentinels", name)
|
||||
_ = c.Process(ctx, cmd)
|
||||
|
Reference in New Issue
Block a user