Skip to content

Commit dd6bafd

Browse files
authored
Merge pull request #2142 from yanggangtony/fix-config
🌱fix default value for cfg.Burst
2 parents 80c1894 + 66eae81 commit dd6bafd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/client/config/config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ func GetConfigWithContext(context string) (*rest.Config, error) {
9898
if err != nil {
9999
return nil, err
100100
}
101-
102101
if cfg.QPS == 0.0 {
103102
cfg.QPS = 20.0
104-
cfg.Burst = 30.0
105103
}
106-
104+
if cfg.Burst == 0 {
105+
cfg.Burst = 30
106+
}
107107
return cfg, nil
108108
}
109109

0 commit comments

Comments
 (0)