def METHOD_NAME(self) -> None:
    now = self.clock.time_msec()
    for key in list(self.transactions):
        ts = self.transactions[key][1]
        if now > (ts + CLEANUP_PERIOD_MS):  # after cleanup period
            del self.transactions[key]