mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
Adding RemoveFailedNode to consul.Client
This commit is contained in:
parent
b468519698
commit
53298520ad
@ -148,6 +148,11 @@ func (c *Client) LANMembers() []serf.Member {
|
|||||||
return c.serf.Members()
|
return c.serf.Members()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// RemoveFailedNode is used to remove a failed node from the cluster
|
||||||
|
func (c *Client) RemoveFailedNode(node string) error {
|
||||||
|
return c.serf.RemoveFailedNode(node)
|
||||||
|
}
|
||||||
|
|
||||||
// lanEventHandler is used to handle events from the lan Serf cluster
|
// lanEventHandler is used to handle events from the lan Serf cluster
|
||||||
func (c *Client) lanEventHandler() {
|
func (c *Client) lanEventHandler() {
|
||||||
for {
|
for {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user