tools/benchmark/cmd: eliminate custom max function

Just a code clean-up.

Signed-off-by: Jes Cok <xigua67damn@gmail.com>
This commit is contained in:
Jes Cok 2024-05-08 21:51:49 +08:00
parent bb398a0e6c
commit beb5e85dcb

View File

@ -152,13 +152,6 @@ func compactKV(clients []*v3.Client) {
}
}
func max(n1, n2 int64) int64 {
if n1 > n2 {
return n1
}
return n2
}
func hashKV(cmd *cobra.Command, clients []*v3.Client) {
eps, err := cmd.Flags().GetStringSlice("endpoints")
if err != nil {