franz-go
franz-go copied to clipboard
kgo: add TopicID to the FetchTopic type
Closes #790.
Topics do not have all 0 topic IDs, if the cluster supports topic IDs. The user can be sure that a topic ID is present based on the fact it is not all 0s. I use this same comparison myself: https://github.com/twmb/franz-go/blob/6b61d17383b1e0c766143118efa39f1f320a3b2b/pkg/kgo/metadata.go#L795-L803 https://github.com/twmb/franz-go/blob/6b61d17383b1e0c766143118efa39f1f320a3b2b/pkg/kgo/source.go#L1895-L1898
Bit of a delay on my side ... releasing this evening.