Skip to content

Commit

Permalink
chore: add comment for cls usage
Browse files Browse the repository at this point in the history
  • Loading branch information
darkskygit committed Mar 11, 2024
1 parent ba2cd40 commit 80131f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/backend/server/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export const FunctionalityModules = [
ScheduleModule.forRoot(),
EventModule,
CacheModule,
// async context binding for nestjs
// now we use it alloc an unique id for each request
// currently we use this id to identify the mutex lock owner
// an mutex lock will only be released by the owner or expired
ClsModule.forRoot({
global: true,
middleware: { mount: true },
Expand Down

0 comments on commit 80131f3

Please sign in to comment.