Skip to content

Commit 93fca7c

Browse files
authored
fix incorrect interface input parameter names (#1865)
1 parent 8fcbd8d commit 93fca7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/epp/datastore/datastore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ type datastore struct {
8787
// poolAndObjectivesMu is used to synchronize access to pool and the objectives map.
8888
poolAndObjectivesMu sync.RWMutex
8989
pool *v1.InferencePool
90-
// key: InferenceObjective.Spec.ModelName, value: *InferenceObjective
90+
// key: InferenceObjective name, value: *InferenceObjective
9191
objectives map[string]*v1alpha2.InferenceObjective
9292
// key: types.NamespacedName, value: backendmetrics.PodMetrics
9393
pods *sync.Map

pkg/epp/requestcontrol/director.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import (
4444
// Datastore defines the interface required by the Director.
4545
type Datastore interface {
4646
PoolGet() (*v1.InferencePool, error)
47-
ObjectiveGet(modelName string) *v1alpha2.InferenceObjective
47+
ObjectiveGet(objectiveName string) *v1alpha2.InferenceObjective
4848
PodList(predicate func(backendmetrics.PodMetrics) bool) []backendmetrics.PodMetrics
4949
}
5050

0 commit comments

Comments
 (0)