Skip to content

Commit 734ff10

Browse files
committed
Check mode type.
1 parent 57bfe8e commit 734ff10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pulsar/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ def create_producer(self, topic,
646646
_check_type_or_none(str, encryption_key, 'encryption_key')
647647
_check_type_or_none(CryptoKeyReader, crypto_key_reader, 'crypto_key_reader')
648648
_check_type(bool, lazy_start_partitioned_producers, 'lazy_start_partitioned_producers')
649+
_check_type(ProducerAccessMode, access_mode, 'access_mode')
649650

650651
conf = _pulsar.ProducerConfiguration()
651652
conf.send_timeout_millis(send_timeout_millis)

0 commit comments

Comments
 (0)