Skip to content

Commit

Permalink
šŸ› 'plugins.messagebus_producers.kafka' : Fixed the 'plugins.messagebuā€¦
Browse files Browse the repository at this point in the history
ā€¦s.kafka.settings.max_request_size' initialization location : it was ignored if 'plugins.messagebus.kafka.settings.ssl' wasn't set
  • Loading branch information
Boris-INSA committed Sep 13, 2024
1 parent c1874a4 commit c63d9b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/messagebus_producers/kafka/kafka.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def __init__(self, settings: dict[str, Any]):
self._kafkaconfig: dict[str, Any] = {
"bootstrap_servers": self._settings["servers"],
"security_protocol": "PLAINTEXT",
"max_request_size": self._settings["max_request_size"],
}

if "ssl" in self._settings:
Expand All @@ -52,7 +53,6 @@ def __init__(self, settings: dict[str, Any]):
"ssl_certfile": self._settings["ssl"]["certfile"],
"ssl_keyfile": self._settings["ssl"]["keyfile"],
"ssl_cafile": self._settings["ssl"]["cafile"],
"max_request_size": self._settings["max_request_size"],
}
)

Expand Down

0 comments on commit c63d9b4

Please sign in to comment.