From beb5e85dcb7f0480e3d4cd557f5b806ffa27553d Mon Sep 17 00:00:00 2001 From: Jes Cok Date: Wed, 8 May 2024 21:51:49 +0800 Subject: [PATCH] tools/benchmark/cmd: eliminate custom max function Just a code clean-up. Signed-off-by: Jes Cok --- tools/benchmark/cmd/put.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tools/benchmark/cmd/put.go b/tools/benchmark/cmd/put.go index 10f1bee0f..62b9a3dc8 100644 --- a/tools/benchmark/cmd/put.go +++ b/tools/benchmark/cmd/put.go @@ -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 {