-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor Reader Improvements #315
Conversation
for i, msg := range msgs { | ||
topic := fmt.Sprintf("%s.%s", cfg.TopicPrefix, msg.TopicSuffix) | ||
kMsg, err := NewMessage(topic, msg.PartitionKey, msg.GetPayload()) | ||
func (b *BatchWriter) buildKafkaMessages(rawMsgs []lib.RawMessage) ([]kafka.Message, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see a need to make cfg
a ptr
lib/kafkalib/errors.go
Outdated
// If it's retryable, you need to reload the Kafka client. | ||
func RetryableError(err error) bool { | ||
func retryableError(err error) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isRetryableError
for consistency with isExceedMaxMessageBytesErr
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sgtm
Changes
Main changes here are: