def _reset(self):
        """
        Calls a function when the rate limit allows (first come first serve)

        Args:
            method (function): the function which will be called when the rate limit allows
            *args (any...): the arguments to be passed to the functions when it is called

        Returns:
            any: the result of the function once it has been called
        """
        self.lock.acquire()

        self._drain()
        for _ in range(self.current - self.limit):
            self.semaphore.release()
        self.resetter = None

        self.lock.release()
dataset/ETHPy150Open meraki-analytics/cassiopeia/cassiopeia/type/api/rates.py/SingleRateLimiter._reset/swapped operands of `-`