From 5c46544e7ec7f5687af0d36acf94b4e47bf6be2e Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Tue, 14 Oct 2014 11:04:43 -0700 Subject: [PATCH] consul: Improve variable name --- consul/leader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consul/leader.go b/consul/leader.go index d53473380..b41f612cb 100644 --- a/consul/leader.go +++ b/consul/leader.go @@ -197,8 +197,8 @@ func (s *Server) reconcile() (err error) { // a "reap" event to cause the node to be cleaned up. func (s *Server) reconcileReaped(known map[string]struct{}) error { state := s.fsm.State() - _, critical := state.ChecksInState(structs.HealthAny) - for _, check := range critical { + _, checks := state.ChecksInState(structs.HealthAny) + for _, check := range checks { // Ignore any non serf checks if check.CheckID != SerfCheckID { continue