Commit 744cab38 by yexing

小细节

parent 5ac648ae
...@@ -13,7 +13,7 @@ export default [ ...@@ -13,7 +13,7 @@ export default [
argsIgnorePattern: "^_", // 忽略函数参数 argsIgnorePattern: "^_", // 忽略函数参数
varsIgnorePattern: "^_", // 忽略普通变量 varsIgnorePattern: "^_", // 忽略普通变量
destructuredArrayIgnorePattern: "^_", // 忽略解构数组中的变量 destructuredArrayIgnorePattern: "^_", // 忽略解构数组中的变量
caughtErrorsIgnorePattern: "^_" // 忽略 catch 错误变量 caughtErrorsIgnorePattern: "^_", // 忽略 catch 错误变量
} }
] ]
} }
......
...@@ -41,6 +41,8 @@ class Subsidiary: ...@@ -41,6 +41,8 @@ class Subsidiary:
url = "https://20tools.net/api/proxies/all?sign=ftd*kcm.ygh4mjp7ERJ" url = "https://20tools.net/api/proxies/all?sign=ftd*kcm.ygh4mjp7ERJ"
resp: Response = await self.s.get(url) resp: Response = await self.s.get(url)
ips = resp.json() ips = resp.json()
if not ips:
continue
await self.r.sadd("walmart_ips", *ips) await self.r.sadd("walmart_ips", *ips)
await self.r.expire("walmart_ips", 1) await self.r.expire("walmart_ips", 1)
logger.debug(f"缓存ip ({len(ips)}): {ips}") logger.debug(f"缓存ip ({len(ips)}): {ips}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment