fix: 修正 fetch_proxies3 调用为 fetch_proxies 以确保正确获取代理
This commit is contained in:
parent
0d35030f6d
commit
6af3cc2b78
@ -113,7 +113,7 @@ def refill_queue(r: redis.Redis, region_name: str, region_code: str,
|
||||
|
||||
to_fetch = batch - length
|
||||
print(f"[{time.strftime('%H:%M:%S')}] {key} 长度 {length} < {low},一次性拉取 {to_fetch} 条…")
|
||||
proxies = fetch_proxies3(region_code, to_fetch)
|
||||
proxies = fetch_proxies(region_code, to_fetch)
|
||||
if proxies:
|
||||
r.rpush(key, *proxies)
|
||||
print(f"[{time.strftime('%H:%M:%S')}] 已入队 {len(proxies)} 条 → 新长度 {r.llen(key)}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user