XYOracleNetwork/clients

View on GitHub
packages/modules-mongo/src/JobQueue/JobQueueContainerModule.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { JobQueue } from '@xyo-network/node-core-model'
import { TYPES } from '@xyo-network/node-core-types'
import type { interfaces } from 'inversify'
import { ContainerModule } from 'inversify'

import { getJobQueue } from './getJobQueue.js'

export const JobQueueContainerModule = new ContainerModule((bind: interfaces.Bind) => {
  bind<JobQueue>(TYPES.JobQueue).toConstantValue(getJobQueue())
})