Skip to content

Commit e9d58bd

Browse files
committed
Positional and keyword argument handling in Ruby 2.7
Ruby 2.7 deprecates automatic conversiom between positional and keyword arguments. See: https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/ Resolves: #857
1 parent c3e90bc commit e9d58bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/kafka/async_producer.rb

Lines changed: 1 addition & 1 deletion
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)