Skip to content

Commit

Permalink
code quality suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Haydn Evans committed Dec 30, 2024
1 parent dec7e3c commit d00a759
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/scalers/postgresql_scaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"database/sql"
"fmt"
"net"
"regexp"
"strings"
"time"
Expand Down Expand Up @@ -202,7 +203,7 @@ func getConnection(ctx context.Context, meta *postgreSQLMetadata, podIdentity ke
if err != nil {
return nil, err
}
DBendpoint := fmt.Sprintf("%s:%s", meta.Host, meta.Port)
DBendpoint := net.JoinHostPort(meta.Host, meta.Port)
password, err := auth.BuildAuthToken(ctx, DBendpoint, meta.AwsRegion, meta.UserName, cfg.Credentials)
if err != nil {
return nil, err
Expand Down

0 comments on commit d00a759

Please sign in to comment.