Skip to content

Commit faedc88

Browse files
committed
update main to use the scorer new functions
Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>
1 parent 47c1641 commit faedc88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/epp/runner/runner.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ func (r *Runner) initializeScheduler(datastore datastore.Datastore) (*scheduling
272272
kvCacheScorerWeight := envutil.GetEnvInt("KV_CACHE_SCORE_WEIGHT", scorer.DefaultKVCacheScorerWeight, setupLog)
273273

274274
schedulerProfile := framework.NewSchedulerProfile().
275-
WithScorers(framework.NewWeightedScorer(&scorer.QueueScorer{}, queueScorerWeight),
276-
framework.NewWeightedScorer(&scorer.KVCacheScorer{}, kvCacheScorerWeight)).
275+
WithScorers(framework.NewWeightedScorer(scorer.NewQueueScorer(), queueScorerWeight),
276+
framework.NewWeightedScorer(scorer.NewKVCacheScorer(), kvCacheScorerWeight)).
277277
WithPicker(picker.NewMaxScorePicker())
278278

279279
if prefixCacheScheduling {

0 commit comments

Comments
 (0)