Skip to content
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

add -partition arg to use in -literal mode #35

Merged
merged 1 commit into from
Oct 14, 2016

Conversation

mkokho
Copy link

@mkokho mkokho commented Oct 13, 2016

No description provided.

@mkokho
Copy link
Author

mkokho commented Oct 13, 2016

I wish we had Travis or similar in our red-repo :)

Copy link
Owner

@fgeller fgeller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the addition! lgtm, would just drop or guard the printf call as we might have thousands of those

@@ -301,6 +310,8 @@ func deserializeLines(wg *sync.WaitGroup, in chan string, out chan message, part
switch {
case config.produce.literal:
msg.Value = &l
msg.Partition = &config.produce.partition
fmt.Printf("Message: %#v", config.produce.partition)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mkokho could you drop the printf or guard it with config.produce.verbose?

@fgeller fgeller merged commit 8bac8f0 into fgeller:master Oct 14, 2016
@fgeller
Copy link
Owner

fgeller commented Oct 14, 2016

got some time, so will do it myself -- thanks @mkokho !

@mkokho mkokho deleted the partition-arg branch August 4, 2017 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants