Skip to content

Conversation

tarampampam
Copy link
Owner

Description

Updated request count limit checks in FS, InMemory, and Redis storage implementations to ensure they only execute when maxRequests is greater than zero. This change enhances code clarity and prevents unnecessary operations when the limit is not set.

Fixes #645

Updated request count limit checks in FS, InMemory, and Redis storage implementations to ensure they only execute when maxRequests is greater than zero. This change enhances code clarity and prevents unnecessary operations when the limit is not set.
Added the gocyclo linting directive to the NewRequest function to improve code maintainability by addressing cyclomatic complexity. This change helps ensure the function remains within acceptable complexity limits for better readability and testing.
@tarampampam tarampampam force-pushed the fix/unlimited-requests-count branch from a7d743b to aafd978 Compare March 14, 2025 08:11
@tarampampam tarampampam merged commit 69a8e79 into master Mar 14, 2025
25 of 26 checks passed
@tarampampam tarampampam deleted the fix/unlimited-requests-count branch March 14, 2025 09:39
@tarampampam tarampampam changed the title fix(storage): Make unlimited requests count great again fix(storage): Make unlimited requests great again Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:fix 🛠 Fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting MAX_REQUESTS to 0 deletes all requests
1 participant