Skip to content

Commit

Permalink
fix(database) fix golint issue
Browse files Browse the repository at this point in the history
fix golint issue

Signed-off-by: zhuhuijun <zhuhuijunzhj@gmail.com>
  • Loading branch information
Ghostbaby committed Dec 2, 2020
1 parent 65f595d commit 9d8e3dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cluster/controllers/database/readiness.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const (
// It does:
// - create postgre connection pool
// - ping postgre server
// - return postgre properties if postgre has available
// - return postgre properties if postgre has available.
func (p *PostgreSQLController) Readiness(ctx context.Context) (*lcm.CRStatus, error) {
var (
conn *Connect
Expand Down Expand Up @@ -133,7 +133,7 @@ func (p *PostgreSQLController) DeployComponentSecret(conn *Connect, secretName s
return nil
}

// GetInClusterDatabaseInfo returns inCluster database connection client
// GetInClusterDatabaseInfo returns inCluster database connection client.
func (p *PostgreSQLController) GetInClusterDatabaseInfo(ctx context.Context) (*Connect, *pgx.Conn, error) {
var (
connect *Connect
Expand Down

0 comments on commit 9d8e3dc

Please sign in to comment.