mirror of
https://github.com/status-im/consul.git
synced 2025-01-23 03:59:18 +00:00
serf: monkey patch https://github.com/hashicorp/serf/pull/486
This commit is contained in:
parent
48ebc241bb
commit
2567a94a81
2
vendor/github.com/hashicorp/serf/serf/serf.go
generated
vendored
2
vendor/github.com/hashicorp/serf/serf/serf.go
generated
vendored
@ -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…
x
Reference in New Issue
Block a user