(r *http.Request, key string, iterations int, wait, done chan struct{})
| 83 | } |
| 84 | |
| 85 | func parallelReader(r *http.Request, key string, iterations int, wait, done chan struct{}) { |
| 86 | <-wait |
| 87 | for i := 0; i < iterations; i++ { |
| 88 | Get(r, key) |
| 89 | } |
| 90 | done <- struct{}{} |
| 91 | |
| 92 | } |
| 93 | |
| 94 | func parallelWriter(r *http.Request, key, value string, iterations int, wait, done chan struct{}) { |
| 95 | <-wait |