catchEvents listens on the requestEvents channel and increments the appropriate bucket.
()
| 166 | // catchEvents listens on the requestEvents channel and increments the |
| 167 | // appropriate bucket. |
| 168 | func catchEvents() { |
| 169 | for range requestEvents { |
| 170 | requestBuckets[currentBucketIndex]++ |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | // log emits timestamped log output. |
| 175 | func log(f string, i ...interface{}) { |