aboutsummaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'server.go')
-rw-r--r--server.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/server.go b/server.go
index 6737ac6..90b2e2e 100644
--- a/server.go
+++ b/server.go
@@ -15,7 +15,7 @@ import (
"syscall"
"time"
- "github.com/jackc/pgx/v5/pgxpool"
+ "go.lindenii.runxiyu.org/forge/internal/database"
"go.lindenii.runxiyu.org/lindenii-common/cmap"
goSSH "golang.org/x/crypto/ssh"
)
@@ -23,10 +23,7 @@ import (
type Server struct {
config Config
- // database serves as the primary database handle for this entire application.
- // Transactions or single reads may be used from it. A [pgxpool.Pool] is
- // necessary to safely use pgx concurrently; pgx.Conn, etc. are insufficient.
- database *pgxpool.Pool
+ database database.Database
sourceHandler http.Handler
staticHandler http.Handler