Skip to content

Commit 7c3c1a7

Browse files
committed
fix linter issue
1 parent fd6225d commit 7c3c1a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

retry/budget/budget.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,15 @@ func Percent(percent int) *percentBudget {
102102
if percent > 100 || percent < 0 {
103103
panic(fmt.Sprintf("wrong percent value: %d", percent))
104104
}
105+
105106
return &percentBudget{
106107
percent: percent,
107108
rand: xrand.New(xrand.WithLock()),
108109
}
109110
}
110111

111112
func (b *percentBudget) Acquire(ctx context.Context) error {
112-
if b.rand.Int(100) < b.percent {
113+
if b.rand.Int(100) < b.percent { //nolint:gomnd
113114
return nil
114115
}
115116

0 commit comments

Comments
 (0)