diff --git a/rpc/svc.tpl b/rpc/svc.tpl index 563777f..6de52a1 100644 --- a/rpc/svc.tpl +++ b/rpc/svc.tpl @@ -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,