(topic string, partitionID int32)
| 323 | } |
| 324 | |
| 325 | func (r *OffsetCommitRequest) Offset(topic string, partitionID int32) (int64, string, error) { |
| 326 | partitions := r.blocks[topic] |
| 327 | if partitions == nil { |
| 328 | return 0, "", errors.New("no such offset") |
| 329 | } |
| 330 | block := partitions[partitionID] |
| 331 | if block == nil { |
| 332 | return 0, "", errors.New("no such offset") |
| 333 | } |
| 334 | return block.offset, block.metadata, nil |
| 335 | } |
nothing calls this directly
no outgoing calls
no test coverage detected