Skip to content

Commit bd3a783

Browse files
Shorten comments
1 parent 0138bc1 commit bd3a783

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

sentinel.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -228,19 +228,14 @@ func (c *SentinelClient) CkQuorum(name string) *StringCmd {
228228
}
229229

230230
// Monitor tells the Sentinel to start monitoring a new master with the specified
231-
// name, ip, port, and quorum. It is identical to the sentinel monitor configuration
232-
// directive in sentinel.conf configuration file, with the difference that you can't
233-
// use an hostname in as ip, but you need to provide an IPv4 or IPv6 address.
231+
// name, ip, port, and quorum.
234232
func (c *SentinelClient) Monitor(name, ip, port, quorum string) *StringCmd {
235233
cmd := NewStringCmd("sentinel", "monitor", name, ip, port, quorum)
236234
c.Process(cmd)
237235
return cmd
238236
}
239237

240238
// Set is used in order to change configuration parameters of a specific master.
241-
// Multiple option / value pairs can be specified (or none at all). All the
242-
// configuration parameters that can be configured via sentinel.conf are also
243-
// configurable using the SET command.
244239
func (c *SentinelClient) Set(name, option, value string) *StringCmd {
245240
cmd := NewStringCmd("sentinel", "set", name, option, value)
246241
c.Process(cmd)
@@ -249,7 +244,7 @@ func (c *SentinelClient) Set(name, option, value string) *StringCmd {
249244

250245
// Remove is used in order to remove the specified master: the master will no
251246
// longer be monitored, and will totally be removed from the internal state of
252-
// the Sentinel, so it will no longer listed by SENTINEL masters and so forth.
247+
// the Sentinel.
253248
func (c *SentinelClient) Remove(name string) *StringCmd {
254249
cmd := NewStringCmd("sentinel", "remove", name)
255250
c.Process(cmd)

0 commit comments

Comments
 (0)