HarshMehta112 opened a new pull request, #3476:
URL: https://github.com/apache/dubbo-go/pull/3476
Fixes #3453
### Description
#### 4. TPS limiter cache is now bounded
`filter/tps/limiter/method_service.go`
The limiter map grew for process lifetime as distinct service+method
combos accumulated.
Wrapped each strategy in a `tpsLimitEntry` tracking last-access time,
switched to `sync.Map`,
and added a singleton background `runCleanup` goroutine that evicts
entries idle past a TTL.
### Tests
- `TestTpsLimitEntryUpdatesLastAccess`, `TestTpsLimiterStaleEntryEviction`
### Checklist
- [x] I confirm the target branch is `develop`
- [x] Code has passed local testing
- [x] I have added tests that prove my fix is effective or that my feature
works
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]