From 6d3cbb4cc98868d6a05697cca72ec5a3f21afe07 Mon Sep 17 00:00:00 2001 From: Carlos Cobo <699969+toqueteos@users.noreply.github.com> Date: Mon, 5 Aug 2024 12:23:13 +0200 Subject: [PATCH] lint: dbPing didn't return anything --- server/db.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/db.go b/server/db.go index 371c95d6ee..dba7980d07 100644 --- a/server/db.go +++ b/server/db.go @@ -225,7 +225,7 @@ func DbConnect(ctx context.Context, logger *zap.Logger, config Config, create bo return db } -func dbPing(ctx context.Context, logger *zap.Logger, db *sql.DB, dbName string) error { +func dbPing(ctx context.Context, logger *zap.Logger, db *sql.DB, dbName string) { pingCtx, cancel := context.WithTimeout(ctx, 10*time.Second) defer cancel() @@ -247,8 +247,6 @@ func dbPing(ctx context.Context, logger *zap.Logger, db *sql.DB, dbName string) errLogger.Fatal("Failed to ping database") } } - - return nil } func dbResolveAddress(ctx context.Context, logger *zap.Logger, host string) ([]string, map[string]struct{}) {