Skip to content

Commit 7e63f30

Browse files
committed
docs
1 parent dd98a35 commit 7e63f30

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/rdkafka/producer.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ def initialize(native_kafka, partitioner_name)
6262
# Sets alternative set of configuration details that can be set per topic
6363
# @note It is not allowed to re-set the same topic config twice because of the underlying
6464
# librdkafka caching
65+
# @param topic [String] The topic name
66+
# @param config [Hash] config we want to use per topic basis
67+
# @param config_hash [Integer] hash of the config. We expect it here instead of computing it,
68+
# because it is already computed during the retrieval attempt in the `#produce` flow.
6569
def set_topic_config(topic, config, config_hash)
6670
# Ensure lock on topic reference just in case
6771
@native_kafka.with_inner do |inner|

0 commit comments

Comments
 (0)