Skip to content

Commit

Permalink
chores: add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-gang committed Oct 17, 2024
1 parent 62085ec commit fa05c65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions protocol/serializer/topic_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (
)

func serializeTopicData(messages []string) []byte {
// Given an array of messages, generates the RecordBatch struct first,
// then uses the encoder.RealEncoder to encode them into bytes.
encoder := kafkaencoder.RealEncoder{}
encoder.Init(make([]byte, 4096))

Expand Down

0 comments on commit fa05c65

Please sign in to comment.