Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed retries, message.send.max.retries, and delivery.timeout.ms
  • Loading branch information
sarwarbhuiyan committed Jun 26, 2023
commit bf66410f75dbc191b531a7f4c124f74c23342aea
7 changes: 1 addition & 6 deletions examples/oauth_producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ def producer_config(args):
logger.setLevel(logging.DEBUG)
params = {
'bootstrap.servers': args.bootstrap_servers,
'retries': 1,
'message.send.max.retries': 1,
'delivery.timeout.ms': 30000,
'security.protocol': 'SASL_SSL',
'sasl.mechanisms': 'OAUTHBEARER',
'sasl.oauthbearer.method': 'oidc',
Expand All @@ -45,12 +42,10 @@ def producer_config(args):
'sasl.oauthbearer.token.endpoint.url': args.token_url,
'sasl.oauthbearer.scope': ' '.join(args.scopes)
}
# These two parameters are only applicable when producing to confluent cloud where some sasl extensions are required.
if args.logical_cluster and args.identity_pool_id:
params['sasl.oauthbearer.extensions'] = 'logicalCluster='+args.logical_cluster+',identityPoolId='+args.identity_pool_id

if args.debug:
params['debug'] = args.debug

return params

def delivery_report(err, msg):
Expand Down