Fix invalid healthz output

This commit is contained in:
tidwall 2021-06-09 10:55:07 -07:00
parent aaf306a54b
commit af43d5a7c7
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ func (s *Server) cmdHealthz(msg *Message) (res resp.Value, err error) {
if s.config.followHost() != "" { if s.config.followHost() != "" {
m := make(map[string]interface{}) m := make(map[string]interface{})
s.basicStats(m) s.basicStats(m)
if fmt.Sprintf("%v\n", m["caught_up"]) != "true" { if fmt.Sprintf("%v", m["caught_up"]) != "true" {
return NOMessage, errors.New("not caught up") return NOMessage, errors.New("not caught up")
} }
} }