Skip to content

Commit

Permalink
chore: salud small naming refactorings
Browse files Browse the repository at this point in the history
  • Loading branch information
martinconic committed Nov 5, 2024
1 parent fa3f062 commit ec73f0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/salud/salud.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (s *service) salud(mode string, minPeersPerbin int, durPercentile float64,
return
}

networkRadius, nHoodRadius := s.committedDepth(peers)
networkRadius, nHoodRadius := s.commitedDepth(peers)
avgDur := totaldur / float64(len(peers))
pDur := percentileDur(peers, durPercentile)
pConns := percentileConns(peers, connsPercentile)
Expand Down Expand Up @@ -288,7 +288,7 @@ func percentileConns(peers []peer, p float64) uint64 {
}

// radius finds the most common radius.
func (s *service) committedDepth(peers []peer) (uint8, uint8) {
func (s *service) commitedDepth(peers []peer) (uint8, uint8) {

var networkDepth [swarm.MaxBins]int
var nHoodDepth [swarm.MaxBins]int
Expand Down

0 comments on commit ec73f0c

Please sign in to comment.