Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oren-lava committed Dec 1, 2024
1 parent e7fa12e commit 9c563b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion utils/score/score_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

// Config defines a collection of parameters that can be used by ScoreStore. ScoreStore is a
// decaying weighted average object that is used to collect providers performace metrics samples.
// decaying weighted average object that is used to collect providers performance metrics samples.
// These are used to calculate the providers QoS excellence score, used by the provider optimizer
// when choosing providers to be paired with a consumer.
//
Expand Down
5 changes: 2 additions & 3 deletions utils/score/score_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const (
)

// ScoreStore is a decaying weighted average object that is used to collect
// providers performace metrics samples (see QoS excellence comment below).
// providers performance metrics samples (see QoS excellence comment below).
// These are used to calculate the providers QoS excellence score, used
// by the provider optimizer when choosing providers to be paired with a consumer.
//
Expand Down Expand Up @@ -111,7 +111,6 @@ func NewScoreStore_Refactor(scoreType string) ScoreStorer_Refactor {
// default availability: 1
availabilityScoreStore, err := NewCustomScoreStore_Refactor(scoreType, DefaultAvailabilityNum_Refactor, 1, time.Now().Add(-InitialDataStaleness_Refactor))
if err != nil {

}
return availabilityScoreStore
default:
Expand Down Expand Up @@ -319,7 +318,7 @@ func (ls *LatencyScoreStore_Refactor) Update(sample float64, sampleTime time.Tim
}

// normalize the sample with the latency CU factor
sample = sample * ls.ScoreStore_Refactor.Config.LatencyCuFactor
sample *= ls.ScoreStore_Refactor.Config.LatencyCuFactor

return ls.ScoreStore_Refactor.Update(sample, sampleTime)
}
Expand Down

0 comments on commit 9c563b8

Please sign in to comment.