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.Driver(c.DatabaseConf.NewNoCacheDriver()),
ent.Debug(), // debug mode ent.Debug(), // debug mode
) )
{{end}}
rds := redis.MustNewRedis(redis.RedisConf{ rds := redis.MustNewRedis(redis.RedisConf{
Host: c.RedisConf.Addr, Host: c.RedisConf.Addr,
Type: c.RedisConf.Type, Type: c.RedisConf.Type,
Pass: c.RedisConf.Password, Pass: c.RedisConf.Password,
Tls: c.RedisConf.Tls, Tls: c.RedisConf.Tls,
}) })
{{end}}
return &ServiceContext{ return &ServiceContext{
Config: c, Config: c,

Loading…
Cancel
Save