From c34c1a25a7a0d310c049b89eea6e88a0597db7ee Mon Sep 17 00:00:00 2001 From: christophe kalenzaga Date: Wed, 27 Sep 2023 17:13:21 +0200 Subject: [PATCH] remove ineff assign in test --- main_test.go | 2 +- scope.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/main_test.go b/main_test.go index cdc2903a..c60852bf 100644 --- a/main_test.go +++ b/main_test.go @@ -1138,7 +1138,7 @@ func TestNewTLSConfig(t *testing.T) { if err != nil { panic(fmt.Sprintf("cannot build TLS config: %s", err)) } - tlsCfg, err = cfg.BuildTLSConfig(autocertManager) + tlsCfg, _ = cfg.BuildTLSConfig(autocertManager) if tlsCfg.GetCertificate == nil { t.Fatalf("expected func GetCertificate be set; got nil") } diff --git a/scope.go b/scope.go index 939b35f4..d0667ee3 100644 --- a/scope.go +++ b/scope.go @@ -906,7 +906,6 @@ func (r *replica) getHostSticky(sessionId string) *topology.Node { // Scan all the hosts for the least loaded host. for i := uint32(1); i < n; i++ { - // handling sticky session sessionId := hash(sessionId) tmpIdx := (sessionId) % n