Skip to content

Commit 55bd383

Browse files
committed
stress.go: add TODO for closing clients
Signed-off-by: Gyuho Lee <[email protected]>
1 parent 95cad91 commit 55bd383

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stress.go

+3
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,14 @@ func newWriteHandlers(gcfg dbtesterpb.ConfigClientMachineAgentControl) (rhs []Re
345345
for i := range etcdClients {
346346
rhs[i] = newPutEtcd3(etcdClients[i])
347347
}
348+
349+
// TODO: this "done" function may decrease throughput at the end
348350
done = func() {
349351
for i := range etcdClients {
350352
etcdClients[i].Close()
351353
}
352354
}
355+
353356
case "zookeeper__r3_5_3_beta", "zetcd__beta":
354357
if gcfg.ConfigClientMachineBenchmarkOptions.SameKey {
355358
key := sameKey(gcfg.ConfigClientMachineBenchmarkOptions.KeySizeBytes)

0 commit comments

Comments
 (0)