From 55525e3cc587d252ddbf3fafd6a96d821e345d31 Mon Sep 17 00:00:00 2001 From: Sahdev Zala Date: Thu, 12 Aug 2021 09:56:38 -0400 Subject: [PATCH] Benchmark: remove redundant function call Remove the redundancy as HashKV func is being called twice. --- tools/benchmark/cmd/put.go | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/benchmark/cmd/put.go b/tools/benchmark/cmd/put.go index a83d57081..366bf1f5f 100644 --- a/tools/benchmark/cmd/put.go +++ b/tools/benchmark/cmd/put.go @@ -171,7 +171,6 @@ func hashKV(cmd *cobra.Command, clients []*v3.Client) { host := eps[0] st := time.Now() - clients[0].HashKV(context.Background(), eps[0], 0) rh, eh := clients[0].HashKV(context.Background(), host, 0) if eh != nil { fmt.Fprintf(os.Stderr, "Failed to get the hashkv of endpoint %s (%v)\n", host, eh)