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

Method readOffsets

reader.go:1546–1549  ·  view source on GitHub ↗
(conn *Conn)

Source from the content-addressed store, hash-verified

1544}
1545
1546func (r *reader) readOffsets(conn *Conn) (first, last int64, err error) {
1547 conn.SetDeadline(time.Now().Add(10 * time.Second))
1548 return conn.ReadOffsets()
1549}
1550
1551func (r *reader) sendMessage(ctx context.Context, msg Message, watermark int64) error {
1552 select {

Callers 2

runMethod · 0.95
initializeMethod · 0.95

Calls 2

ReadOffsetsMethod · 0.80
SetDeadlineMethod · 0.45

Tested by

no test coverage detected