Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
banjoh committed Nov 14, 2023
1 parent 5d88987 commit a2d84e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/collect/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ func (c *CollectPostgres) createConnectConfig() (*pgx.ConnConfig, error) {

// Drop the TLS params to files and set the paths to their
// respective environment variables
// The environment variables are unset after the connection config
// is created. Their respective files are deleted as well.
tmpdir, err := os.MkdirTemp("", "ts-postgres-collector")
if err != nil {
return nil, errors.Wrap(err, "failed to create temp dir to store postgres collector TLS files")
Expand Down

0 comments on commit a2d84e3

Please sign in to comment.