From b1508f1a5ac43d27836db3d23dad17353036ded3 Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 21 Dec 2025 19:28:18 -0800 Subject: [PATCH] =?UTF-8?q?fix(mpc-service):=20=E6=B3=A8=E5=86=8CDistribut?= =?UTF-8?q?edLockService=E5=88=B0InfrastructureModule?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../src/infrastructure/infrastructure.module.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/backend/services/mpc-service/src/infrastructure/infrastructure.module.ts b/backend/services/mpc-service/src/infrastructure/infrastructure.module.ts index 967ec469..6b0b986b 100644 --- a/backend/services/mpc-service/src/infrastructure/infrastructure.module.ts +++ b/backend/services/mpc-service/src/infrastructure/infrastructure.module.ts @@ -23,6 +23,9 @@ import { EventConsumerService } from './messaging/kafka/event-consumer.service'; import { BackupClientService } from './external/backup'; import { BlockchainClientService } from './external/blockchain'; +// Redis +import { DistributedLockService } from './redis/lock/distributed-lock.service'; + @Global() @Module({ imports: [ @@ -43,6 +46,9 @@ import { BlockchainClientService } from './external/blockchain'; // External Services BackupClientService, BlockchainClientService, + + // Redis (分布式锁) + DistributedLockService, ], exports: [ PrismaService, @@ -50,6 +56,7 @@ import { BlockchainClientService } from './external/blockchain'; EventConsumerService, BackupClientService, BlockchainClientService, + DistributedLockService, ], }) export class InfrastructureModule {}