Updated all code to use SafeConn and SafeTX

This commit is contained in:
2025-02-17 21:39:12 +11:00
parent 6faf168a6d
commit a8d112fdd5
17 changed files with 265 additions and 218 deletions

View File

@@ -1,7 +1,6 @@
package server
import (
"database/sql"
"net/http"
"projectreshoot/config"
@@ -15,7 +14,6 @@ import (
func NewServer(
config *config.Config,
logger *zerolog.Logger,
oldconn *sql.DB,
conn *db.SafeConn,
staticFS *http.FileSystem,
) http.Handler {
@@ -24,7 +22,6 @@ func NewServer(
mux,
logger,
config,
oldconn,
conn,
staticFS,
)