makeCommit builds a commit value from a message, the resulting commit takes its topic, partition, and offset from the message.
(msg Message)
| 11 | // makeCommit builds a commit value from a message, the resulting commit takes |
| 12 | // its topic, partition, and offset from the message. |
| 13 | func 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 |
no outgoing calls
searching dependent graphs…