Skip to content

Commit

Permalink
generate: add ListOffsets defaults
Browse files Browse the repository at this point in the history
See Kafka commit 785de1e3d459b26c3ce383986827719388be7c6f
  • Loading branch information
twmb committed Sep 24, 2020
1 parent 6102a9b commit 10b324b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generate/DEFINITIONS
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ ListOffsetsRequest => key 2, max version 5
//
// The initial leader epoch can be determined from a MetadataResponse.
// To skip log truncation checking, use -1.
CurrentLeaderEpoch: int32 // v4+
CurrentLeaderEpoch: int32(-1) // v4+
// Timestamp controls which offset to return in a response for this
// partition.
//
Expand Down Expand Up @@ -677,7 +677,7 @@ ListOffsetsResponse =>
Offset: int64(-1) // v1+
// LeaderEpoch is the leader epoch of the record at this offset,
// or -1 if there was no leader epoch.
LeaderEpoch: int32 // v4+
LeaderEpoch: int32(-1) // v4+

// MetadataRequest requests metadata from Kafka.
MetadataRequest => key 3, max version 9, flexible v9+
Expand Down
2 changes: 2 additions & 0 deletions pkg/kmsg/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 10b324b

Please sign in to comment.