Updates for cli and context

cli adds new global options. We'll be able to specify flags that
apply to multiple options now.

context update fixes parallelWriter function, actually writes a value out now.
This commit is contained in:
Frederick F. Kautz IV
2014-12-11 09:19:20 -08:00
parent e107c3204d
commit c2290dd1d4
9 changed files with 318 additions and 63 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ func parallelReader(r *http.Request, key string, iterations int, wait, done chan
func parallelWriter(r *http.Request, key, value string, iterations int, wait, done chan struct{}) {
<-wait
for i := 0; i < iterations; i++ {
Get(r, key)
Set(r, key, value)
}
done <- struct{}{}