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

Method findCoordinator

consumergroup.go:584–589  ·  view source on GitHub ↗
(req findCoordinatorRequestV0)

Source from the content-addressed store, hash-verified

582}
583
584func (t *timeoutCoordinator) findCoordinator(req findCoordinatorRequestV0) (findCoordinatorResponseV0, error) {
585 if err := t.conn.SetDeadline(time.Now().Add(t.timeout)); err != nil {
586 return findCoordinatorResponseV0{}, err
587 }
588 return t.conn.findCoordinator(req)
589}
590
591func (t *timeoutCoordinator) joinGroup(req joinGroupRequest) (joinGroupResponse, error) {
592 // in the case of join group, the consumer group coordinator may wait up

Callers

nothing calls this directly

Calls 2

findCoordinatorMethod · 0.65
SetDeadlineMethod · 0.45

Tested by

no test coverage detected