We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
balancers.SingleConn
1 parent 768a3cb commit 41f6b20Copy full SHA for 41f6b20
CHANGELOG.md
@@ -1,3 +1,4 @@
1
+* Disabled check of node exists with `balancers.SingleConn`
2
* Improved code with `go-critic` linter
3
* Added session info into `database/sql` event `connected`
4
internal/balancer/balancer.go
@@ -45,6 +45,9 @@ type Balancer struct {
45
}
46
47
func (b *Balancer) HasNode(id uint32) bool {
48
+ if b.balancerConfig.SingleConn {
49
+ return true
50
+ }
51
b.mu.RLock()
52
defer b.mu.RUnlock()
53
if _, has := b.connectionsState.connByNodeID[id]; has {
0 commit comments