Skip to content

Commit b418bd9

Browse files
authored
Fixed limiters group configuration
Fixed typo in limiters group configuration
1 parent 08a80ba commit b418bd9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/limits/limits.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ func (g *Group) Configure(inlineArgs []string, cfg *config.Map) error {
118118
}
119119
if len(destL) != 0 {
120120
g.dest = limiters.NewBucketSet(func() limiters.L {
121-
l := make([]limiters.L, 0, len(sourceL))
122-
for _, ctor := range sourceL {
121+
l := make([]limiters.L, 0, len(destL))
122+
for _, ctor := range destL {
123123
l = append(l, ctor())
124124
}
125125
return &limiters.MultiLimit{Wrapped: l}

0 commit comments

Comments
 (0)