def cleanup(self):
        now = time.time()
        expired = now - NODE_TIMEOUT
        if self.conn.zremrangebyscore(self.key, 0, expired):
            self._notify()
Removes expired nodes/replicas from the ring.
dataset/ETHPy150Open closeio/redis-hashring/redis_hashring/__init__.py/RingNode.cleanup