Skip to content

Commit ef3bd62

Browse files
committed
* Changed default balancer to balancers.PreferLocalDC(balancers.RandomChoice())
1 parent c4ba29e commit ef3bd62

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* Changed default balancer to `balancers.PreferLocalDC(balancers.RandomChoice())`
2+
13
## v3.29.0
24
* Refactored `internal/value` package for decrease CPU and memory workload with GC
35
* Added `table/types.Equal(lhs, rhs)` helper for check equal for two types

balancers/balancers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,5 @@ func PreferWithFallback(balancer *balancerConfig.Config, filter func(endpoint En
102102

103103
// Default balancer used by default
104104
func Default() *balancerConfig.Config {
105-
return RandomChoice()
105+
return PreferLocalDC(RandomChoice())
106106
}

0 commit comments

Comments
 (0)