mirror of https://github.com/grpc/grpc-go.git
When a locality is removed from EDS response, it's corresponding sub-balancer will be removed from balancer group. With this change, the sub-balancer won't be removed immediately. It will be kept in a cache (for 15 minutes by default). If the locality is re-added within the timeout, the sub-balancer in cache will be picked and re-used. |
||
|---|---|---|
| .. | ||
| timeoutCache.go | ||
| timeoutCache_test.go | ||