Explorar el Código

减少重复计算

Ye hace 9 años
padre
commit
26225f7b8e
Se han modificado 1 ficheros con 1 adiciones y 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)
         raw_proxy = self.db.pop()
         self.log.info('%s start validProxy_a' % time.ctime())
-        # 计算剩余代理,用来
+        # 计算剩余代理,用来减少重复计算
         remaining_proxies = self.db.getAll()
         while raw_proxy:
             if (raw_proxy not in remaining_proxies) and validUsefulProxy(raw_proxy):