Skip to content

Commit

Permalink
fix: improve the way a node is healthy based on network radius (#4721)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinconic authored Jul 12, 2024
1 parent 2b2036b commit 550ecc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/salud/salud.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func (s *service) salud(mode string, minPeersPerbin int, durPercentile float64,
}

selfHealth := true
if s.reserve.StorageRadius() != networkRadius {
if nHoodRadius == networkRadius && s.reserve.StorageRadius() != networkRadius {
selfHealth = false
s.logger.Warning("node is unhealthy due to storage radius discrepency", "self_radius", s.reserve.StorageRadius(), "network_radius", networkRadius)
}
Expand Down

0 comments on commit 550ecc9

Please sign in to comment.