MCPcopy
hub / github.com/IBM/sarama / mainLoop

Method mainLoop

offset_manager.go:239–251  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

237}
238
239func (om *offsetManager) mainLoop() {
240 defer om.ticker.Stop()
241 defer close(om.closed)
242
243 for {
244 select {
245 case <-om.ticker.C:
246 om.Commit()
247 case <-om.closing:
248 return
249 }
250 }
251}
252
253func (om *offsetManager) Commit() {
254 om.flushToBroker()

Callers

nothing calls this directly

Calls 2

CommitMethod · 0.95
StopMethod · 0.80

Tested by

no test coverage detected