Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion astrbot/core/pipeline/rate_limit_check/stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async def process(
timestamps = self.event_timestamps[session_id]
self._remove_expired_timestamps(timestamps, now)

if len(timestamps) < self.rate_limit_count:
if self.rate_limit_count <= 0 or len(timestamps) < self.rate_limit_count:
Comment thread
sourcery-ai[bot] marked this conversation as resolved.
Outdated
Comment thread
Soulter marked this conversation as resolved.
Outdated
timestamps.append(now)
break
next_window_time = timestamps[0] + self.rate_limit_time
Expand Down
Loading