MCPcopy
hub / github.com/segmentio/kafka-go / withErrorLogger

Method withErrorLogger

reader.go:1137–1143  ·  view source on GitHub ↗
(do func(Logger))

Source from the content-addressed store, hash-verified

1135}
1136
1137func (r *Reader) withErrorLogger(do func(Logger)) {
1138 if r.config.ErrorLogger != nil {
1139 do(r.config.ErrorLogger)
1140 } else {
1141 r.withLogger(do)
1142 }
1143}
1144
1145func (r *Reader) activateReadLag() {
1146 if r.config.ReadLagInterval > 0 && atomic.CompareAndSwapUint32(&r.once, 0, 1) {

Callers 3

commitLoopIntervalMethod · 0.95
runMethod · 0.95
readLagMethod · 0.95

Calls 1

withLoggerMethod · 0.95

Tested by

no test coverage detected