mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
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:
parent
bb398a0e6c
commit
beb5e85dcb
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user