mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #17971 from callthingsoff/eliminate_max
tools/benchmark/cmd: eliminate custom max function
This commit is contained in:
commit
905f0f1d9f
@ -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