Explorar o código

减少重复计算

Ye %!s(int64=9) %!d(string=hai) anos
pai
achega
26225f7b8e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Schedule/ProxyRefreshSchedule.py

+ 1 - 1
Schedule/ProxyRefreshSchedule.py

@@ -48,7 +48,7 @@ class ProxyRefreshSchedule(ProxyManager):
         self.db.changeTable(self.raw_proxy_queue)
         self.db.changeTable(self.raw_proxy_queue)
         raw_proxy = self.db.pop()
         raw_proxy = self.db.pop()
         self.log.info('%s start validProxy_a' % time.ctime())
         self.log.info('%s start validProxy_a' % time.ctime())
-        # 计算剩余代理,用来
+        # 计算剩余代理,用来减少重复计算
         remaining_proxies = self.db.getAll()
         remaining_proxies = self.db.getAll()
         while raw_proxy:
         while raw_proxy:
             if (raw_proxy not in remaining_proxies) and validUsefulProxy(raw_proxy):
             if (raw_proxy not in remaining_proxies) and validUsefulProxy(raw_proxy):