Skip to content

Commit

Permalink
Fix typo in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
EinKrebs committed Mar 28, 2024
1 parent 11de040 commit a101743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/datatransfers/data_transfers.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func copyData(ctx context.Context, from, to *pgx.Conn, fromId, toId string, krg
fromHost := strings.Split(fromShard.Hosts[0], ":")[0]
serverName := fmt.Sprintf("%s_%s_%s", strings.Split(toShard.Hosts[0], ":")[0], dbName, fromHost)
// create postgres_fdw server on receiving shard
// TODO find_master
// TODO find master
_, err := to.Exec(ctx, fmt.Sprintf(`CREATE server IF NOT EXISTS %s FOREIGN DATA WRAPPER postgres_fdw OPTIONS (dbname '%s', host '%s', port '%s')`, serverName, dbName, fromHost, strings.Split(fromShard.Hosts[0], ":")[1]))
if err != nil {
return err
Expand Down

0 comments on commit a101743

Please sign in to comment.