Skip to content

Commit d13f23b

Browse files
committed
Followed linter suggestion to fix, but another fix needed
Signed-off-by: Geoff Wilson <geoff@gr-oss.io>
1 parent 879fe1f commit d13f23b

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 (_ *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)