Skip to content

Commit fb7b9ea

Browse files
authored
Merge pull request #859 from tsrivishnu/ruby-2-7-positional-and-keywords-args
Positional and keyword argument handling in Ruby 2.7
2 parents c3e90bc + e9d58bd commit fb7b9ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/kafka/async_producer.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def run
217217

218218
case operation
219219
when :produce
220-
produce(*payload)
220+
produce(payload[0], **payload[1])
221221
deliver_messages if threshold_reached?
222222
when :deliver_messages
223223
deliver_messages

0 commit comments

Comments
 (0)