()
| 286 | } |
| 287 | |
| 288 | func (r *OffsetCommitRequest) requiredVersion() KafkaVersion { |
| 289 | switch r.Version { |
| 290 | case 8: |
| 291 | return V2_4_0_0 |
| 292 | case 7: |
| 293 | return V2_3_0_0 |
| 294 | case 5, 6: |
| 295 | return V2_1_0_0 |
| 296 | case 4: |
| 297 | return V2_0_0_0 |
| 298 | case 3: |
| 299 | return V0_11_0_0 |
| 300 | case 2: |
| 301 | return V0_9_0_0 |
| 302 | case 0, 1: |
| 303 | return V0_8_2_0 |
| 304 | default: |
| 305 | return V2_4_0_0 |
| 306 | } |
| 307 | } |
| 308 | |
| 309 | func (r *OffsetCommitRequest) AddBlock(topic string, partitionID int32, offset int64, timestamp int64, metadata string) { |
| 310 | r.AddBlockWithLeaderEpoch(topic, partitionID, offset, 0, timestamp, metadata) |
nothing calls this directly
no outgoing calls
no test coverage detected