micro--go-micro
adc90b4d2d
* Initial plan * Apply rate limiting before singleflight to prevent blocking - Check rate limiting BEFORE entering singleflight - If rate-limited AND stale cache exists, return stale cache immediately - This prevents all goroutines from blocking when etcd is down/slow - Maintains stampede prevention via singleflight for non-rate-limited requests - All existing tests pass Co-authored-by: asim <17530+asim@users.noreply.github.com> * Fix variable shadowing in rate limiting check - Rename shadowed variables to currentLastRefresh and currentMinimumRetryInterval - Improves code clarity and prevents potential bugs - All tests still pass Co-authored-by: asim <17530+asim@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: asim <17530+asim@users.noreply.github.com>