mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Python code linting changes detected by black
This commit is contained in:
parent
35adae926f
commit
8fe5d18765
@ -68,7 +68,7 @@ class ExponentialBackoffRetryPolicy(RetryPolicy):
|
|||||||
# Add a random component to avoid synchronized retries
|
# Add a random component to avoid synchronized retries
|
||||||
wiggle = random.randint(0, 100)
|
wiggle = random.randint(0, 100)
|
||||||
sleep_ms = min(
|
sleep_ms = min(
|
||||||
self.min_backoff + self.multiplier ** retry_num + wiggle, self.max_backoff
|
self.min_backoff + self.multiplier**retry_num + wiggle, self.max_backoff
|
||||||
)
|
)
|
||||||
time.sleep(sleep_ms / 1000)
|
time.sleep(sleep_ms / 1000)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user