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

Function makeCommit

commit.go:13–19  ·  view source on GitHub ↗

makeCommit builds a commit value from a message, the resulting commit takes its topic, partition, and offset from the message.

(msg Message)

Source from the content-addressed store, hash-verified

11// makeCommit builds a commit value from a message, the resulting commit takes
12// its topic, partition, and offset from the message.
13func makeCommit(msg Message) commit {
14 return commit{
15 topic: msg.Topic,
16 partition: msg.Partition,
17 offset: msg.Offset + 1,
18 }
19}
20
21// makeCommits generates a slice of commits from a list of messages, it extracts
22// the topic, partition, and offset of each message and builds the corresponding

Callers 2

TestMakeCommitFunction · 0.85
makeCommitsFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestMakeCommitFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…