Closed hasit closed 8 months ago
The project has undergone a refactor that affects concurrency control, with changes in testing patterns, interface contracts, and internal logic for limiters and schedulers. A new method for setting capacity in the concurrency limiter interface has been introduced, and adjustments have been made to the registration function in the flow control engine. Additionally, the .gitignore
file has been updated to better manage the repository's file tracking.
File Path | Summary of Changes |
---|---|
pkg/dmap-funcs/concurrency-limiter/*.go |
Removal of requestRate , addition of shouldReturn , refactoring of runFlows , adjustment of checkResults , renaming of test function, addition of new subtest. |
pkg/dmap-funcs/concurrency-limiter/iface.go |
Addition of SetCapacity method to ConcurrencyLimiter interface. |
pkg/policies/flowcontrol/actuators/concurrency-limiter/concurrency-limiter.go |
Removal of inner field, refactoring of references to cl.inner , and changes in cl.inner initialization. |
pkg/policies/flowcontrol/actuators/concurrency-scheduler/concurrency-scheduler.go |
Modifications to concurrencyScheduler struct and usage of limiter field. Introduction of inner variable. |
pkg/policies/flowcontrol/engine.go |
Modification of register function parameters and matchedCB type. |
.gitignore |
Alterations to patterns for file tracking within the version control system. |
pkg/policies/flowcontrol/engine_test.go |
Addition of new imports, introduction of MockTestLimiter type, implementation of methods, and addition of test case for ProcessRequest . |
🐇 "In the realm of code, where rabbits dare,
Changes hop through files with flair.
Concurrency tamed, tests refined,
A new chapter begins, with carrots aligned." 🥕
Description of change
Checklist
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Tests
Chores
.gitignore
to better manage file tracking within the version control system.