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

Method batchTimeout

writer.go:825–830  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

823}
824
825func (w *Writer) batchTimeout() time.Duration {
826 if w.BatchTimeout > 0 {
827 return w.BatchTimeout
828 }
829 return 1 * time.Second
830}
831
832func (w *Writer) readTimeout() time.Duration {
833 if w.ReadTimeout > 0 {

Callers 2

StatsMethod · 0.95
newWriteBatchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected