Skip to content

Commit

Permalink
Merge pull request #32 from benjaminjb/use-const
Browse files Browse the repository at this point in the history
Use masterName var instead of "mymaster"
  • Loading branch information
jchanam authored Feb 22, 2018
2 parents 431e8a5 + cac700f commit 82bd0b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/redis/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func (c *client) GetSentinelMonitor(ip string) (string, error) {
}
rClient := rediscli.NewClient(options)
defer rClient.Close()
cmd := rediscli.NewSliceCmd("SENTINEL", "master", "mymaster")
cmd := rediscli.NewSliceCmd("SENTINEL", "master", masterName)
rClient.Process(cmd)
res, err := cmd.Result()
if err != nil {
Expand Down

0 comments on commit 82bd0b1

Please sign in to comment.