Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
greedy52 committed May 15, 2024
1 parent 0952d77 commit 2840caa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/backend/pgbk/common/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ import (
"os"
"testing"

"github.com/gravitational/teleport/lib/utils"
"github.com/jackc/pgx/v5/pgxpool"
"github.com/stretchr/testify/require"

"github.com/gravitational/teleport/lib/utils"
)

func TestMain(m *testing.M) {
Expand Down
5 changes: 3 additions & 2 deletions lib/backend/pgbk/common/gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ import (

credentials "cloud.google.com/go/iam/credentials/apiv1"
"cloud.google.com/go/iam/credentials/apiv1/credentialspb"
"github.com/gravitational/teleport/lib/utils/gcp"
"github.com/gravitational/trace"
"github.com/jackc/pgx/v5"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"

"github.com/gravitational/teleport/lib/utils/gcp"
)

// GCPSQLBeforeConnect returns a pgx BeforeConnect function suitable for GCP
Expand All @@ -40,7 +41,7 @@ func GCPSQLBeforeConnect(ctx context.Context, logger *slog.Logger) (func(ctx con
}

// GCPAlloyDBBeforeConnect returns a pgx BeforeConnect function suitable for GCP
// AlloyDB (PostgreSQL-compatiable) with IAM authentication.
// AlloyDB (PostgreSQL-compatible) with IAM authentication.
func GCPAlloyDBBeforeConnect(ctx context.Context, logger *slog.Logger) (func(ctx context.Context, config *pgx.ConnConfig) error, error) {
return gcpOAuthAccessTokenBeforeConnect(ctx, gcpAccessTokenGetterImpl{}, gcpAlloyDBOAuthScope, logger)
}
Expand Down

0 comments on commit 2840caa

Please sign in to comment.