MCPcopy
hub / github.com/uber/aresdb / advanceClock

Method advanceClock

subscriber/common/tools/batcher_test.go:37–41  ·  view source on GitHub ↗
(duration time.Duration)

Source from the content-addressed store, hash-verified

35}
36
37func (w *worker) advanceClock(duration time.Duration) {
38 w.mutex.Lock()
39 defer w.mutex.Unlock()
40 w.time = w.time.Add(duration)
41}
42
43func (w *worker) run(batches chan []interface{}, wg *sync.WaitGroup) {
44 for batch := range batches {

Callers 1

batcher_test.goFile · 0.80

Calls 3

AddMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected