Skip to content

Commit

Permalink
fix: redis connection
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixNgFender committed Apr 15, 2024
1 parent e3c4d80 commit e93b42f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/instrumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const register = async () => {

const { errorHandler } = await import('@/lib/error');
const { logger } = await import('@/lib/logger');
// const { redis } = await import('@/infra');
const { redis } = await import('@/infra');

/**
* Tear down resources and gracefully exit the process.
Expand All @@ -20,7 +20,7 @@ export const register = async () => {
const cleanup = async (exitCode: number) => {
// await queryClient.end();
// Redis and Minio clients are already closed by the time this function is called.
// await redis.quit();
await redis.quit();
logger.info('Gracefully shutting down...');
process.exit(exitCode);
};
Expand Down

0 comments on commit e93b42f

Please sign in to comment.