serf: monkey patch https://github.com/hashicorp/serf/pull/486
This commit is contained in:
parent
20a58ab272
commit
1530f12f56
|
@ -1654,6 +1654,8 @@ func (s *Serf) Stats() map[string]string {
|
|||
toString := func(v uint64) string {
|
||||
return strconv.FormatUint(v, 10)
|
||||
}
|
||||
s.memberLock.RLock()
|
||||
defer s.memberLock.RUnlock()
|
||||
stats := map[string]string{
|
||||
"members": toString(uint64(len(s.members))),
|
||||
"failed": toString(uint64(len(s.failedMembers))),
|
||||
|
|
Loading…
Reference in New Issue