def do(self): origin, urls = self.queue.get() timeit(self.frontier.add, origin, origin, urls)
def do(self): url = timeit(self.frontier.pop, 'feeder') if not url: sleep(5) else: self.queue.put(url)