Skip to content

Commit

Permalink
remove ineff assign in test
Browse files Browse the repository at this point in the history
  • Loading branch information
mga-chka committed Sep 27, 2023
1 parent 1635d89 commit c34c1a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down
1 change: 0 additions & 1 deletion scope.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c34c1a2

Please sign in to comment.