mirror of https://github.com/status-im/consul.git
Remove unused methods
This commit is contained in:
parent
03965f0721
commit
4a2230bfc8
|
@ -18,11 +18,8 @@ func (s *Server) lanEventHandler() {
|
||||||
case serf.EventMemberJoin:
|
case serf.EventMemberJoin:
|
||||||
s.localJoin(e.(serf.MemberEvent))
|
s.localJoin(e.(serf.MemberEvent))
|
||||||
case serf.EventMemberLeave:
|
case serf.EventMemberLeave:
|
||||||
s.localLeave(e.(serf.MemberEvent))
|
|
||||||
case serf.EventMemberFailed:
|
case serf.EventMemberFailed:
|
||||||
s.localFailed(e.(serf.MemberEvent))
|
|
||||||
case serf.EventUser:
|
case serf.EventUser:
|
||||||
s.localEvent(e.(serf.UserEvent))
|
|
||||||
default:
|
default:
|
||||||
s.logger.Printf("[WARN] Unhandled LAN Serf Event: %#v", e)
|
s.logger.Printf("[WARN] Unhandled LAN Serf Event: %#v", e)
|
||||||
}
|
}
|
||||||
|
@ -73,18 +70,6 @@ func (s *Server) localJoin(me serf.MemberEvent) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// localLeave is used to handle leave events on the lan serf cluster
|
|
||||||
func (s *Server) localLeave(me serf.MemberEvent) {
|
|
||||||
}
|
|
||||||
|
|
||||||
// localFailed is used to handle fail events on the lan serf cluster
|
|
||||||
func (s *Server) localFailed(me serf.MemberEvent) {
|
|
||||||
}
|
|
||||||
|
|
||||||
// localEvent is used to handle events on the lan serf cluster
|
|
||||||
func (s *Server) localEvent(ue serf.UserEvent) {
|
|
||||||
}
|
|
||||||
|
|
||||||
// remoteJoin is used to handle join events on the wan serf cluster
|
// remoteJoin is used to handle join events on the wan serf cluster
|
||||||
func (s *Server) remoteJoin(me serf.MemberEvent) {
|
func (s *Server) remoteJoin(me serf.MemberEvent) {
|
||||||
for _, m := range me.Members {
|
for _, m := range me.Members {
|
||||||
|
|
Loading…
Reference in New Issue