dubeejw commented on a change in pull request #241: Allow producer to batch
messages
URL:
https://github.com/apache/incubator-openwhisk-package-kafka/pull/241#discussion_r164935665
##########
File path: action/messageHubProduce.py
##########
@@ -83,23 +83,20 @@ def main(params):
# we successfully connected and found the topic metadata... let's send!
if producer is not None:
try:
- logging.info("Producing message")
-
# only use the key parameter if it is present
value = validatedParams['value']
+ batch = isinstance(value, list)
Review comment:
Would need to error if arguments are passed to both parameters in that case
though.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services