Skip to content

Commit

Permalink
delete empty line
Browse files Browse the repository at this point in the history
  • Loading branch information
lsy3993 committed May 15, 2024
1 parent 5eb5e46 commit 59e5b93
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/storage/postgresql.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@ type PostgresqlDB struct {
}

func NewPostgresqlDB(host string, port int, user string, password string) (DB, error) {

url := fmt.Sprintf("postgres://%s:%s@%s:%d/%s?sslmode=disable", user, password, host, port, "postgres")

// dsn := fmt.Sprintf("user=%s password=%s host=%s port=%s dbname=%s sslmode=disable", user, password, host, port, "postgres")
db, err := sql.Open("postgres", url)

if err != nil {
return nil, xerror.Wrapf(err, xerror.DB, "postgresql: open %s:%s failed", host, port)

Check failure on line 22 in pkg/storage/postgresql.go

View workflow job for this annotation

GitHub Actions / build

github.com/selectdb/ccr_syncer/pkg/xerror.Wrapf format %s has arg port of wrong type int
}
Expand Down

0 comments on commit 59e5b93

Please sign in to comment.