Skip to content

Commit d06200b

Browse files
committed
Set concurrency = 0 if user selects concurrency = 1
1 parent d837cd5 commit d06200b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

grafana_wtf/core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ def clear_cache(self):
9595
log.info("Clearing cache")
9696
requests_cache.clear()
9797

98-
def enable_concurrency(self, concurrency):
98+
def enable_concurrency(self, concurrency: int):
99+
if concurrency == 1:
100+
concurrency = 0
99101
self.concurrency = concurrency
100102

101103
@classmethod

0 commit comments

Comments
 (0)