some cleanup

This commit is contained in:
2026-10-07 15:35:04 +02:00
parent c7e7e615c2
commit 8e3abca9d7
13 changed files with 179 additions and 121 deletions
+1 -3
View File
@@ -32,9 +32,7 @@ var serveCmd = &cobra.Command{
}
conf := *config.Conf
ctx := context.Background()
db_url := "postgres://" + conf.Database.User + ":" + conf.Database.Password + "@" + conf.Database.Host + ":" + strconv.Itoa(conf.Database.Port) + "/" + conf.Database.Name
db_url = db_url + "?sslmode=disable"
conn, err := pgxpool.New(ctx, db_url)
conn, err := pgxpool.New(ctx, conf.Database.URL().String())
if err != nil {
panic(err.Error())
}