This commit is contained in:
momo 2023-10-07 15:42:25 +08:00
parent a8a7132a66
commit 6cdb8b6e6b

View File

@ -21,10 +21,10 @@ type ServiceContext struct {
func NewServiceContext(c config.Config) *ServiceContext {
conn := initalize.InitMysql(c.SourceMysql)
delayQueue := initalize.InitDelayMessage()
// delayQueue := initalize.InitDelayMessage()
repositories := initalize.NewAllRepositories(&initalize.NewAllRepositorieData{
GormDB: conn,
DelayQueue: delayQueue,
GormDB: conn,
// DelayQueue: delayQueue,
})
return &ServiceContext{
@ -32,6 +32,6 @@ func NewServiceContext(c config.Config) *ServiceContext {
MysqlConn: conn,
AllModels: gmodel.NewAllModels(conn),
Repositories: repositories,
DelayQueue: delayQueue,
// DelayQueue: delayQueue,
}
}