From b9e205356b7e2f708764047c8be6d5bb3cd6f761 Mon Sep 17 00:00:00 2001 From: cialloo Date: Sat, 4 Oct 2025 16:40:02 +0800 Subject: [PATCH] update --- script/k8s/deployment.yaml | 4 ++-- src/internal/svc/servicecontext.go | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/script/k8s/deployment.yaml b/script/k8s/deployment.yaml index 85303a5..29b1ca4 100644 --- a/script/k8s/deployment.yaml +++ b/script/k8s/deployment.yaml @@ -33,7 +33,7 @@ spec: readinessProbe: httpGet: - path: /api/v1/player/stats?auth=1 + path: /api/server/statistics/ping port: http initialDelaySeconds: 5 periodSeconds: 10 @@ -42,7 +42,7 @@ spec: livenessProbe: httpGet: - path: /api/v1/player/stats?auth=1 + path: /api/server/statistics/ping port: http initialDelaySeconds: 15 periodSeconds: 20 diff --git a/src/internal/svc/servicecontext.go b/src/internal/svc/servicecontext.go index fc7f091..dee7b9a 100644 --- a/src/internal/svc/servicecontext.go +++ b/src/internal/svc/servicecontext.go @@ -17,7 +17,6 @@ type ServiceContext struct { func NewServiceContext(c config.Config) *ServiceContext { // Initialize database connection db, err := sql.Open("postgres", c.Database.DSN) - println(c.Database.DSN) if err != nil { log.Fatalf("Failed to connect to database: %v", err) }