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

Method readPartitions

consumergroup.go:637–642  ·  view source on GitHub ↗
(topics ...string)

Source from the content-addressed store, hash-verified

635}
636
637func (t *timeoutCoordinator) readPartitions(topics ...string) ([]Partition, error) {
638 if err := t.conn.SetDeadline(time.Now().Add(t.timeout)); err != nil {
639 return nil, err
640 }
641 return t.conn.ReadPartitions(topics...)
642}
643
644// NewConsumerGroup creates a new ConsumerGroup. It returns an error if the
645// provided configuration is invalid. It does not attempt to connect to the

Callers

nothing calls this directly

Calls 2

SetDeadlineMethod · 0.45
ReadPartitionsMethod · 0.45

Tested by

no test coverage detected