| 1 | import { Module } from '@nestjs/common'; |
| 2 | |
| 3 | import { MaterializerModule } |
| 4 | import { StorageModule } |
| 5 | import { PullRefsService } |
| 6 | import { PullRequestPushesService } |
| 7 | import { PushTransactionService } |
| 8 | import { WalStoreService } |
| 9 | |
| 10 | // One instance for the whole app: its in-flight map only coalesces syncs for a request when every caller shares it. |
| 11 | @Module({ |
| 12 | imports: [MaterializerModule, |
| 13 | providers: [ |
| 14 | PullRefsService, |
| 15 | PullRequestPushesService, |
| 16 | PushTransactionService, |
| 17 | WalStoreService, |
| 18 | ], |
| 19 | exports: [PullRefsService, |
| 20 | }) |
| 21 | export class PullRefsModule |