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

Method syncGroup

consumergroup.go:600–607  ·  view source on GitHub ↗
(req syncGroupRequestV0)

Source from the content-addressed store, hash-verified

598}
599
600func (t *timeoutCoordinator) syncGroup(req syncGroupRequestV0) (syncGroupResponseV0, error) {
601 // in the case of sync group, the consumer group leader is given up to
602 // the session timeout to respond before the coordinator will give up.
603 if err := t.conn.SetDeadline(time.Now().Add(t.timeout + t.sessionTimeout)); err != nil {
604 return syncGroupResponseV0{}, err
605 }
606 return t.conn.syncGroup(req)
607}
608
609func (t *timeoutCoordinator) leaveGroup(req leaveGroupRequestV0) (leaveGroupResponseV0, error) {
610 if err := t.conn.SetDeadline(time.Now().Add(t.timeout)); err != nil {

Callers

nothing calls this directly

Calls 2

syncGroupMethod · 0.65
SetDeadlineMethod · 0.45

Tested by

no test coverage detected