Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
darkskygit committed Mar 4, 2024
1 parent f82726b commit 7726607
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/backend/server/src/fundamentals/mutex/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ export class MutexService {
private readonly logger = new Logger(MutexService.name);
private readonly bucket = new Map<string, string>();

constructor(private readonly als: ClsService) {}
constructor(private readonly cls: ClsService) {}

private getId() {
let id = this.als.get('asyncId');
let id = this.cls.get('asyncId');

if (!id) {
id = randomUUID();
this.als.set('asyncId', id);
this.cls.set('asyncId', id);
}

return id;
Expand Down

0 comments on commit 7726607

Please sign in to comment.