Skip to content

Commit fb40cbf

Browse files
committed
linter
Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>
1 parent 462c78b commit fb40cbf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/plugins/profile/pd-profile-handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (h *PdProfileHandler) Pick(ctx context.Context, request *types.LLMRequest,
8181
// ProcessResults handles the outcome of the profile runs after both prefill and decode profiles ran succuessfully.
8282
// In case of an error in one of them, ProcessResults will not be called by the scheduler and an appropriate error
8383
// is returned by the scheduler.
84-
func (h *PdProfileHandler) ProcessResults(ctx context.Context, request *types.LLMRequest, profileResults map[string]*types.ProfileRunResult) *types.SchedulingResult {
84+
func (h *PdProfileHandler) ProcessResults(_ context.Context, request *types.LLMRequest, profileResults map[string]*types.ProfileRunResult) *types.SchedulingResult {
8585
if pool, err := h.datastore.PoolGet(); err == nil {
8686
// TODO: should the scheme be conifgurable (e.g., https://)?
8787
prefillURL := fmt.Sprintf("http://%s:%d", profileResults[prefill].TargetPod.GetPod().Address, pool.Spec.TargetPortNumber)

pkg/plugins/scorer/prefix_aware.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (s *PrefixAwareScorer) Name() string {
6161
}
6262

6363
// Score scores the target pods based on the longest prefix match.
64-
func (s *PrefixAwareScorer) Score(ctx context.Context, request *types.LLMRequest, cycleState *types.CycleState, pods []types.Pod) map[types.Pod]float64 {
64+
func (s *PrefixAwareScorer) Score(ctx context.Context, request *types.LLMRequest, _ *types.CycleState, pods []types.Pod) map[types.Pod]float64 {
6565
loggerDebug := log.FromContext(ctx).WithName(prefixAwareScorerName).V(logutil.DEBUG)
6666
if request == nil {
6767
loggerDebug.Info("Request is nil, skipping scoring")
@@ -101,7 +101,7 @@ func (s *PrefixAwareScorer) Score(ctx context.Context, request *types.LLMRequest
101101

102102
// PostResponse implements the PostResponse interface.
103103
// It adds the prefix to the PrefixStore for the given pod.
104-
func (s *PrefixAwareScorer) PostResponse(ctx context.Context, request *types.LLMRequest, response *requestcontrol.Response, targetPod *backend.Pod) {
104+
func (s *PrefixAwareScorer) PostResponse(ctx context.Context, request *types.LLMRequest, _ *requestcontrol.Response, targetPod *backend.Pod) {
105105
debugLogger := log.FromContext(ctx).WithName(prefixAwareScorerName)
106106
debugLogger.Info("PostResponse called", "request", request, "pod", targetPod)
107107

0 commit comments

Comments
 (0)