Skip to content

Commit

Permalink
chore: fix deprecated lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
samlaf committed Oct 23, 2024
1 parent 733cf2e commit fb3d28d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tools/traffic/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ func NewConfig(ctx *cli.Context) (*Config, error) {
customQuorumsUint8[i] = uint8(q)
}
return &Config{
Config: *clients.NewConfig(
ctx.GlobalString(flags.HostnameFlag.Name),
ctx.GlobalString(flags.GrpcPortFlag.Name),
ctx.Duration(flags.TimeoutFlag.Name),
ctx.GlobalBool(flags.UseSecureGrpcFlag.Name),
),
Config: clients.Config{
Hostname: ctx.GlobalString(flags.HostnameFlag.Name),
Port: ctx.GlobalString(flags.GrpcPortFlag.Name),
Timeout: ctx.Duration(flags.TimeoutFlag.Name),
UseSecureGrpcFlag: ctx.GlobalBool(flags.UseSecureGrpcFlag.Name),
},
NumInstances: ctx.GlobalUint(flags.NumInstancesFlag.Name),
RequestInterval: ctx.Duration(flags.RequestIntervalFlag.Name),
DataSize: ctx.GlobalUint64(flags.DataSizeFlag.Name),
Expand Down

0 comments on commit fb3d28d

Please sign in to comment.