diff options
author | Gibheer <gibheer+git@zero-knowledge.org> | 2024-09-05 19:38:25 +0200 |
---|---|---|
committer | Gibheer <gibheer+git@zero-knowledge.org> | 2024-09-05 19:38:25 +0200 |
commit | 6ea4d2c82de80efc87708e5e182034b7c6c2019e (patch) | |
tree | 35c0856a929040216c82153ca62d43b27530a887 /cmd/moncheck | |
parent | 6f64eeace1b66639b9380b44e88a8d54850a4306 (diff) |
lib/pq is out of maintenance for some time now, so switch to the newer
more active library. Looks like it finally stabilized after a long time.
Diffstat (limited to 'cmd/moncheck')
-rw-r--r-- | cmd/moncheck/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/moncheck/main.go b/cmd/moncheck/main.go index c9d3180..d8f0a74 100644 --- a/cmd/moncheck/main.go +++ b/cmd/moncheck/main.go @@ -18,6 +18,7 @@ import ( "time" "git.zero-knowledge.org/gibheer/monzero" + _ "github.com/jackc/pgx/v5/stdlib" ) var ( @@ -73,7 +74,7 @@ func main() { os.Exit(1) } - db, err := sql.Open("postgres", config.DB) + db, err := sql.Open("pgx", config.DB) if err != nil { logger.Error("could not open database connection", "error", err) os.Exit(1) |