Commit 3c46089
perf: 复用 AsyncClient 替代 ThreadPoolExecutor 避免 SSL 上下文阻塞 (#162)
fix: (#160)
## Summary by Sourcery
增强功能:
- 将基于 `ThreadPoolExecutor` 的同步 HTTP 调用替换为可复用的 `httpx.AsyncClient`,以实现对
PyPI 版本的非阻塞检查。
<details>
<summary>Original summary in English</summary>
## Summary by Sourcery
Enhancements:
- Replace ThreadPoolExecutor-based synchronous HTTP calls with a
reusable httpx.AsyncClient for non-blocking PyPI version checks.
</details>
---------
Co-authored-by: weinibuliu <weinibuliu@outlook.com>1 parent 39b2d6b commit 3c46089
1 file changed
Lines changed: 11 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
| 13 | + | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | | - | |
23 | | - | |
| 21 | + | |
24 | 22 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
31 | 28 | | |
32 | 29 | | |
33 | 30 | | |
| |||
56 | 53 | | |
57 | 54 | | |
58 | 55 | | |
59 | | - | |
60 | 56 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
65 | 61 | | |
66 | 62 | | |
67 | | - | |
68 | | - | |
69 | 63 | | |
70 | 64 | | |
71 | 65 | | |
| |||
0 commit comments