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

Function handleRecord

protocol/record_batch.go:67–75  ·  view source on GitHub ↗
(i int, r *Record, f func(int, *Record) error)

Source from the content-addressed store, hash-verified

65}
66
67func handleRecord(i int, r *Record, f func(int, *Record) error) error {
68 if r.Key != nil {
69 defer r.Key.Close()
70 }
71 if r.Value != nil {
72 defer r.Value.Close()
73 }
74 return f(i, r)
75}
76
77type recordReader struct {
78 records []Record

Callers 1

forEachRecordFunction · 0.85

Calls 1

CloseMethod · 0.45

Tested by

no test coverage detected