mirror of
https://github.com/datarhei/core.git
synced 2025-10-16 13:00:37 +08:00
Add EmergencyLeaderTimeout parameter, ignore throttling nodes, implement NodeRecoverTimeout, introduce processNodeMap in cluster DB
This commit is contained in:
@@ -239,9 +239,8 @@ func (p *proxy) Resources() map[string]NodeResources {
|
||||
p.lock.RLock()
|
||||
defer p.lock.RUnlock()
|
||||
|
||||
for _, node := range p.nodes {
|
||||
about := node.About()
|
||||
resources[about.ID] = about.Resources
|
||||
for id, node := range p.nodes {
|
||||
resources[id] = node.Resources()
|
||||
}
|
||||
|
||||
return resources
|
||||
|
Reference in New Issue
Block a user