| 1 | import { Module } from '@nestjs/common'; |
| 2 | |
| 3 | import { RepositoryMaterializerService } |
| 4 | import { WalStoreService } |
| 5 | import { RepositoryStorageService } |
| 6 | |
| 7 | // One materializer for the whole app: its in-flight map only prevents two replays of the same cache, and only lets `settle` wait for them, when every caller shares it. |
| 8 | @Module({ |
| 9 | providers: [ |
| 10 | RepositoryMaterializerService, |
| 11 | WalStoreService, |
| 12 | RepositoryStorageService, |
| 13 | ], |
| 14 | exports: [RepositoryMaterializerService], |
| 15 | }) |
| 16 | export class MaterializerModule |