Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lint: dbPing didn't return anything
Browse files Browse the repository at this point in the history
toqueteos committed Aug 5, 2024
1 parent 5b6004c commit a128078
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server/db.go
Original file line number Diff line number Diff line change
@@ -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{}) {

0 comments on commit a128078

Please sign in to comment.