cleanup
This commit is contained in:
parent
585baea183
commit
41027fa380
5 changed files with 9 additions and 11 deletions
|
|
@ -217,7 +217,10 @@ func logPanic(r interface{}) {
|
|||
}
|
||||
|
||||
func (c *Cluster) Stepdown() {
|
||||
c.stepdown <- struct{}{}
|
||||
select {
|
||||
case c.stepdown <- struct{}{}:
|
||||
case <-time.After(time.Second * 2):
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Cluster) Stop() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue