Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgresql fix #224

Merged
merged 8 commits into from
Apr 4, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cleanup 🧽
  • Loading branch information
thomastvedt committed Jan 14, 2022
commit 18ee3ebaecd9b2b0ceea0a100a5a5cd8179e090b
98 changes: 0 additions & 98 deletions .github/workflows/build_temp.yml

This file was deleted.

3 changes: 0 additions & 3 deletions backends/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ func OpenDatabase(dsn, engine string, tries int) (*sqlx.DB, error) {
return nil, fmt.Errorf("couldn't ping database %s: %s", engine, err)
}

// https://github.com/iegomez/mosquitto-go-auth/issues/218
// https://stackoverflow.com/questions/50338338/intermittent-connection-reset-by-peer-sql-postgres
// Possible fix to broken postgresql connections:
db.SetConnMaxLifetime(time.Minute)

return db, nil
Expand Down