mirror of https://github.com/etcd-io/dbtester.git
stress.go: add TODO for closing clients
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
95cad913a0
commit
55bd3834a1
|
|
@ -345,11 +345,14 @@ func newWriteHandlers(gcfg dbtesterpb.ConfigClientMachineAgentControl) (rhs []Re
|
|||
for i := range etcdClients {
|
||||
rhs[i] = newPutEtcd3(etcdClients[i])
|
||||
}
|
||||
|
||||
// TODO: this "done" function may decrease throughput at the end
|
||||
done = func() {
|
||||
for i := range etcdClients {
|
||||
etcdClients[i].Close()
|
||||
}
|
||||
}
|
||||
|
||||
case "zookeeper__r3_5_3_beta", "zetcd__beta":
|
||||
if gcfg.ConfigClientMachineBenchmarkOptions.SameKey {
|
||||
key := sameKey(gcfg.ConfigClientMachineBenchmarkOptions.KeySizeBytes)
|
||||
|
|
|
|||
Loading…
Reference in New Issue