Skip to content

Commit

Permalink
Update security_protocol argument docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Martin Blazquez committed Apr 11, 2023
1 parent 57439a6 commit 0e4558d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion aiokafka/consumer/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ class AIOKafkaConsumer:
If set to ``auto``, will attempt to infer the broker version by
probing various APIs. Default: ``auto``
security_protocol (str): Protocol used to communicate with brokers.
Valid values are: ``PLAINTEXT``, ``SSL``. Default: ``PLAINTEXT``.
Valid values are: ``PLAINTEXT``, ``SSL``, ``SASL_PLAINTEXT``,
``SASL_SSL``. Default: ``PLAINTEXT``.
ssl_context (ssl.SSLContext): pre-configured :class:`~ssl.SSLContext`
for wrapping socket connections. Directly passed into asyncio's
:meth:`~asyncio.loop.create_connection`. For more information see
Expand Down
4 changes: 2 additions & 2 deletions aiokafka/producer/producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ class AIOKafkaProducer:
If set to ``auto``, will attempt to infer the broker version by
probing various APIs. Default: ``auto``
security_protocol (str): Protocol used to communicate with brokers.
Valid values are: ``PLAINTEXT``, ``SSL``. Default: ``PLAINTEXT``.
Default: ``PLAINTEXT``.
Valid values are: ``PLAINTEXT``, ``SSL``, ``SASL_PLAINTEXT``,
``SASL_SSL``. Default: ``PLAINTEXT``.
ssl_context (ssl.SSLContext): pre-configured :class:`~ssl.SSLContext`
for wrapping socket connections. Directly passed into asyncio's
:meth:`~asyncio.loop.create_connection`. For more
Expand Down

0 comments on commit 0e4558d

Please sign in to comment.