Skip to content

Commit

Permalink
fix default value for cfg.Burst
Browse files Browse the repository at this point in the history
Signed-off-by: yanggang <gang.yang@daocloud.io>
  • Loading branch information
yanggang committed Jan 26, 2023
1 parent 613648e commit 66eae81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/client/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ func GetConfigWithContext(context string) (*rest.Config, error) {
if err != nil {
return nil, err
}

if cfg.QPS == 0.0 {
cfg.QPS = 20.0
cfg.Burst = 30.0
}

if cfg.Burst == 0 {
cfg.Burst = 30
}
return cfg, nil
}

Expand Down

0 comments on commit 66eae81

Please sign in to comment.