MCPcopy Create free account
hub / github.com/cloud-native-go/examples / catchEvents

Function catchEvents

ch09/backoff-simulator/main.go:168–172  ·  view source on GitHub ↗

catchEvents listens on the requestEvents channel and increments the appropriate bucket.

()

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected