stress.go: add TODO for closing clients

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyuho Lee 2018-05-14 10:55:28 -07:00
parent 95cad913a0
commit 55bd3834a1
1 changed files with 3 additions and 0 deletions

View File

@ -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)