Merge pull request #5280 from XiShanYongYe-Chang/update-pluginToClusterScores-length

[Cleanup] update pluginToClusterScores length from filterPlugins length to scorePlugins length
This commit is contained in:
karmada-bot 2024-07-30 22:17:21 +08:00 committed by GitHub
commit 145a67e873
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ func (frw *frameworkImpl) RunScorePlugins(
defer func() {
metrics.FrameworkExtensionPointDuration.WithLabelValues(score, result.Code().String()).Observe(utilmetrics.DurationInSeconds(startTime))
}()
pluginToClusterScores := make(framework.PluginToClusterScores, len(frw.filterPlugins))
pluginToClusterScores := make(framework.PluginToClusterScores, len(frw.scorePlugins))
for _, p := range frw.scorePlugins {
var scoreList framework.ClusterScoreList
for _, cluster := range clusters {