import { Module, OnModuleInit } from '@nestjs/common';
import { SceneService } from './scene.service';
import { CacheModule } from '../cache/cache.module';
import { CacheService } from '../cache/cache.service';
// import { RedisService } from '../redis/redis.service';
import { StreamService } from './stream/stream.service';
import { BullModule } from '@nestjs/bull';
import { RotateConsumer } from './rotate-consumer';
import { RotateService } from '../rotate/rotate.service';

@Module({
  imports: [
    CacheModule,
    BullModule.registerQueue({
      name: 'rotate',
    }),
  ],
  controllers: [],
  providers: [
    SceneService,
    CacheService,
    StreamService,
    RotateService,
    RotateConsumer,
  ],
  exports: [SceneService, CacheService],
})
export class SceneModule implements OnModuleInit {
  onModuleInit() {
    // BullModule.registerQueue({
    //   configKey: 'rotate-queue',
    //   name: 'rotate',
    // });
  }
}
