Add max_backoff and starting_backoff for get_conn in swift service

Change-Id: I45f5d3009e0e2015c7366384ee826113fc27c70b
changes/51/743551/3
Meuh 2 years ago
parent 22d1f3a39a
commit 842086d27f
  1. 6
      swiftclient/service.py

@ -274,7 +274,7 @@ def get_conn(options):
return Connection(options['auth'],
options['user'],
options['key'],
options['retries'],
retries=options['retries'],
auth_version=options['auth_version'],
os_options=options['os_options'],
snet=options['snet'],
@ -283,7 +283,9 @@ def get_conn(options):
cert=options['os_cert'],
cert_key=options['os_key'],
ssl_compression=options['ssl_compression'],
force_auth_retry=options['force_auth_retry'])
force_auth_retry=options['force_auth_retry'],
starting_backoff=options.get('starting_backoff', 1),
max_backoff=options.get('max_backoff', 64))
def mkdirs(path):

Loading…
Cancel
Save