SPSCommerce / redlock-py

Redis distributed locks in Python
MIT License
572 stars 117 forks source link

retry_count = 0 or retry_delay = 0 not works, may be a bug? #24

Open FelixHo opened 7 years ago

FelixHo commented 7 years ago

when i dont want it to retry then set retry_count =0, actually it will use the default value (retry 3 times) , may be it is a bug there (L68-L69). (return default if "is None" may fix it)
https://github.com/SPSCommerce/redlock-py/blob/master/redlock/__init__.py#L68-L69