fix: Remove Memory Management from Resource Limiter#2123
Merged
Conversation
…alization - Removed memory threshold management from ResourceLimiter, including related methods and metrics. - Updated NewResourceLimiter and newResourceLimiterForTesting functions to eliminate memory threshold parameters. - Adjusted tests to reflect changes in ResourceLimiter initialization and removed memory-related assertions. - Enhanced resource limiter setup in RPCProvider to streamline configuration options. This refactor improves clarity and reduces complexity in resource management, focusing on concurrent execution limits without memory constraints.
…o improve sync loss retry logic - Introduced a clearer mechanism for tracking errored providers and determining if a sync loss is new and should be retried. - Simplified the conditions for marking providers as unwanted, ensuring that all non-retryable errors and subsequent sync losses are handled appropriately. - Added comments for better code clarity and maintainability.
Test Results3 092 tests - 2 3 091 ✅ - 1 31m 28s ⏱️ + 10m 49s Results for commit 28c365f. ± Comparison against base commit 1832ff4. This pull request removes 2 tests.♻️ This comment has been updated with latest results. |
- Updated tests for ResourceLimiter to improve clarity and coverage, including detailed comments for each test case. - Introduced a timeout context for request queuing to handle cancellations and timeouts more effectively. - Enhanced metrics verification to ensure accurate tracking of queued and rejected requests. - Improved synchronization in concurrent request handling to prevent race conditions and ensure correct metrics reporting.
AnnaR-prog
approved these changes
Dec 3, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Core Resource Limiter (resource_limiter.go)
Removed Fields:
Removed Methods:
Updated Function Signatures:
Removed Prometheus Metrics:
Removed Imports:
RPC Provider (rpcprovider.go)
Removed:
Updated: