Skip to content

Commit 7d4dc12

Browse files
committed
Fix linter complaint unused receiver
2 parents 9db568c + b5e795f commit 7d4dc12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/otel-allocator/internal/allocation/allocator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func (a *allocator) SetFallbackStrategy(strategy Strategy) {
115115

116116
// getTargetWeight returns the numeric weight for a target.
117117
// Resolution order: pod annotation meta label > default (1).
118-
func (a *allocator) getTargetWeight(tg *target.Item) int {
118+
func (_ *allocator) getTargetWeight(tg *target.Item) int {
119119
// Check pod annotation (exposed as meta label by K8s SD)
120120
if labelVal := tg.Labels.Get(config.WeightAnnotationMetaLabel); labelVal != "" {
121121
if w, err := strconv.Atoi(labelVal); err == nil && w >= 1 && w <= 100 {

0 commit comments

Comments
 (0)