misc minor changes

proxywatchd: remove sleep
ppf: update proxies schemes
This commit is contained in:
mickael
2019-01-04 19:58:52 +00:00
parent 6453494839
commit d7f79708ca
2 changed files with 1 additions and 5 deletions

View File

@@ -103,11 +103,8 @@ class Proxywatchd(Thread):
q = 'SELECT proxy,failed,country,proto FROM proxylist WHERE failed<? and tested<? ORDER BY RANDOM() LIMIT ?'
while self.running:
time.sleep(0.1)
sqlite_requests = []
rows = sqlite.execute(q, (self.maxfail, time.time(), random.randint(10,20))).fetchall()
if not len(rows):
time.sleep(random.randint(10,20))
continue