mirror of https://github.com/status-im/consul.git
consul: Ignore new Serf events
This commit is contained in:
parent
ffca4f5544
commit
7d4e099566
|
@ -190,6 +190,9 @@ func (c *Client) lanEventHandler() {
|
||||||
c.nodeFail(e.(serf.MemberEvent))
|
c.nodeFail(e.(serf.MemberEvent))
|
||||||
case serf.EventUser:
|
case serf.EventUser:
|
||||||
c.localEvent(e.(serf.UserEvent))
|
c.localEvent(e.(serf.UserEvent))
|
||||||
|
case serf.EventMemberUpdate: // Ignore
|
||||||
|
case serf.EventMemberReap: // Ignore
|
||||||
|
case serf.EventQuery: // Ignore
|
||||||
default:
|
default:
|
||||||
c.logger.Printf("[WARN] consul: unhandled LAN Serf Event: %#v", e)
|
c.logger.Printf("[WARN] consul: unhandled LAN Serf Event: %#v", e)
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,8 +18,11 @@ func (s *Server) lanEventHandler() {
|
||||||
fallthrough
|
fallthrough
|
||||||
case serf.EventMemberFailed:
|
case serf.EventMemberFailed:
|
||||||
s.localMemberEvent(e.(serf.MemberEvent))
|
s.localMemberEvent(e.(serf.MemberEvent))
|
||||||
|
case serf.EventMemberUpdate: // Ignore
|
||||||
|
case serf.EventMemberReap: // Ignore
|
||||||
case serf.EventUser:
|
case serf.EventUser:
|
||||||
s.localEvent(e.(serf.UserEvent))
|
s.localEvent(e.(serf.UserEvent))
|
||||||
|
case serf.EventQuery: // Ignore
|
||||||
default:
|
default:
|
||||||
s.logger.Printf("[WARN] consul: unhandled LAN Serf Event: %#v", e)
|
s.logger.Printf("[WARN] consul: unhandled LAN Serf Event: %#v", e)
|
||||||
}
|
}
|
||||||
|
@ -42,7 +45,10 @@ func (s *Server) wanEventHandler() {
|
||||||
fallthrough
|
fallthrough
|
||||||
case serf.EventMemberFailed:
|
case serf.EventMemberFailed:
|
||||||
s.remoteFailed(e.(serf.MemberEvent))
|
s.remoteFailed(e.(serf.MemberEvent))
|
||||||
|
case serf.EventMemberUpdate: // Ignore
|
||||||
|
case serf.EventMemberReap: // Ignore
|
||||||
case serf.EventUser:
|
case serf.EventUser:
|
||||||
|
case serf.EventQuery: // Ignore
|
||||||
default:
|
default:
|
||||||
s.logger.Printf("[WARN] consul: unhandled WAN Serf Event: %#v", e)
|
s.logger.Printf("[WARN] consul: unhandled WAN Serf Event: %#v", e)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue