Commit a1f534e
* Add rate limiting to address #1081
Workaround for issue #1081. Limits max concurrent connections for downloading the CVE tarballs to two at a time. Moves non-response related code out of the async block to avoid holding a semaphore permit unnecessarily.
* style: format with black
Signed-off-by: John Andersen <[email protected]>
Co-authored-by: John Andersen <[email protected]>
1 parent 3e30fcf commit a1f534e
1 file changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
139 | 142 | | |
140 | 143 | | |
141 | 144 | | |
| |||
0 commit comments