Skip to content

Commit d2cf189

Browse files
committed
fix: don't hardcode hostname in conn string
1 parent d65862f commit d2cf189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hasura/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func (api *API) AddSource(ctx context.Context, hasura *config.Hasura, cfg config
130130
"name": hasura.Source,
131131
"configuration": Configuration{
132132
ConnectionInfo: ConnectionInfo{
133-
DatabaseUrl: fmt.Sprintf("postgresql://%s:%s@%s:%d/%s", cfg.User, cfg.Password /*cfg.Host*/, "db-dipdup", cfg.Port, cfg.Database),
133+
DatabaseUrl: fmt.Sprintf("postgresql://%s:%s@%s:%d/%s", cfg.User, cfg.Password, cfg.Host, cfg.Port, cfg.Database),
134134
UsePreparedStatements: true,
135135
IsolationLevel: "read-committed",
136136
},

0 commit comments

Comments
 (0)