Skip to content

Commit

Permalink
chore: Meilisearchへの接続を使ってヘルスチェックをしないように (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanarikanaru authored Dec 31, 2024
1 parent 0309dbf commit def9264
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/backend/src/server/HealthServerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { bindThis } from '@/decorators.js';
import { DI } from '@/di-symbols.js';
import { readyRef } from '@/boot/ready.js';
import type { FastifyInstance, FastifyPluginOptions } from 'fastify';
import type { MeiliSearch } from 'meilisearch';

@Injectable()
export class HealthServerService {
Expand All @@ -33,8 +32,6 @@ export class HealthServerService {
@Inject(DI.db)
private db: DataSource,

@Inject(DI.meilisearch)
private meilisearch: MeiliSearch | null,
) {}

@bindThis
Expand All @@ -48,7 +45,6 @@ export class HealthServerService {
this.redisForTimelines.ping(),
this.redisForReactions.ping(),
this.db.query('SELECT 1'),
...(this.meilisearch ? [this.meilisearch.health()] : []),
]).then(() => 200, () => 503));
reply.header('Cache-Control', 'no-store');
});
Expand Down

0 comments on commit def9264

Please sign in to comment.