fix(mpc-service): 注册DistributedLockService到InfrastructureModule
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
10b25e222e
commit
b1508f1a5a
|
|
@ -23,6 +23,9 @@ import { EventConsumerService } from './messaging/kafka/event-consumer.service';
|
||||||
import { BackupClientService } from './external/backup';
|
import { BackupClientService } from './external/backup';
|
||||||
import { BlockchainClientService } from './external/blockchain';
|
import { BlockchainClientService } from './external/blockchain';
|
||||||
|
|
||||||
|
// Redis
|
||||||
|
import { DistributedLockService } from './redis/lock/distributed-lock.service';
|
||||||
|
|
||||||
@Global()
|
@Global()
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
|
|
@ -43,6 +46,9 @@ import { BlockchainClientService } from './external/blockchain';
|
||||||
// External Services
|
// External Services
|
||||||
BackupClientService,
|
BackupClientService,
|
||||||
BlockchainClientService,
|
BlockchainClientService,
|
||||||
|
|
||||||
|
// Redis (分布式锁)
|
||||||
|
DistributedLockService,
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
PrismaService,
|
PrismaService,
|
||||||
|
|
@ -50,6 +56,7 @@ import { BlockchainClientService } from './external/blockchain';
|
||||||
EventConsumerService,
|
EventConsumerService,
|
||||||
BackupClientService,
|
BackupClientService,
|
||||||
BlockchainClientService,
|
BlockchainClientService,
|
||||||
|
DistributedLockService,
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class InfrastructureModule {}
|
export class InfrastructureModule {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue