chore: 修复不启用 isEnt情况下的错误

main
NoahLan 1 year ago
parent d074e4e58b
commit ace99a172b

@ -29,14 +29,13 @@ func NewServiceContext(c config.Config) *ServiceContext {
ent.Driver(c.DatabaseConf.NewNoCacheDriver()),
ent.Debug(), // debug mode
)
{{end}}
rds := redis.MustNewRedis(redis.RedisConf{
Host: c.RedisConf.Addr,
Type: c.RedisConf.Type,
Pass: c.RedisConf.Password,
Tls: c.RedisConf.Tls,
})
{{end}}
return &ServiceContext{
Config: c,

Loading…
Cancel
Save