code: def update(self):
          
          expire_time = time.time() - self.max_time
          while self.row_deque and self.time_deque[0] < expire_time:
              self.row_deque.popleft()  # FIFO
              self.time_deque.popleft()
docs: Update the deque, removing rows based on time