()
| 137 | } |
| 138 | |
| 139 | func (r *OffsetCommitResponse) requiredVersion() KafkaVersion { |
| 140 | switch r.Version { |
| 141 | case 8: |
| 142 | return V2_4_0_0 |
| 143 | case 7: |
| 144 | return V2_3_0_0 |
| 145 | case 5, 6: |
| 146 | return V2_1_0_0 |
| 147 | case 4: |
| 148 | return V2_0_0_0 |
| 149 | case 3: |
| 150 | return V0_11_0_0 |
| 151 | case 2: |
| 152 | return V0_9_0_0 |
| 153 | case 0, 1: |
| 154 | return V0_8_2_0 |
| 155 | default: |
| 156 | return V2_4_0_0 |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | func (r *OffsetCommitResponse) throttleTime() time.Duration { |
| 161 | return time.Duration(r.ThrottleTimeMs) * time.Millisecond |
nothing calls this directly
no outgoing calls
no test coverage detected