MCPcopy Create free account
hub / github.com/IBM/sarama / mainLoop

Method mainLoop

offset_manager.go:260–272  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

258}
259
260func (om *offsetManager) mainLoop() {
261 defer om.ticker.Stop()
262 defer close(om.closed)
263
264 for {
265 select {
266 case <-om.ticker.C:
267 om.Commit()
268 case <-om.closing:
269 return
270 }
271 }
272}
273
274func (om *offsetManager) Commit() {
275 om.flushToBroker()

Callers

nothing calls this directly

Calls 2

CommitMethod · 0.95
StopMethod · 0.80

Tested by

no test coverage detected