(req syncGroupRequestV0)
| 598 | } |
| 599 | |
| 600 | func (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 | |
| 609 | func (t *timeoutCoordinator) leaveGroup(req leaveGroupRequestV0) (leaveGroupResponseV0, error) { |
| 610 | if err := t.conn.SetDeadline(time.Now().Add(t.timeout)); err != nil { |
nothing calls this directly
no test coverage detected