redisClient 제거
This commit is contained in:
@ -14,7 +14,6 @@ import (
|
||||
"repositories.action2quare.com/ayo/gocommon/logger"
|
||||
"repositories.action2quare.com/ayo/gocommon/wshandler"
|
||||
|
||||
"github.com/go-redis/redis/v8"
|
||||
"go.mongodb.org/mongo-driver/bson"
|
||||
"go.mongodb.org/mongo-driver/bson/bsonrw"
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
@ -131,8 +130,6 @@ type subTavern struct {
|
||||
groups map[string]group
|
||||
methods map[string]reflect.Method
|
||||
cm connectionMap
|
||||
|
||||
redisClient *redis.Client
|
||||
}
|
||||
|
||||
func getMacAddr() (string, error) {
|
||||
@ -203,12 +200,6 @@ func (tv *Tavern) Cleanup() {
|
||||
// }
|
||||
|
||||
func (tv *Tavern) prepare(ctx context.Context) error {
|
||||
redisClient, err := gocommon.NewRedisClient(config.RedisURL, 0)
|
||||
if err != nil {
|
||||
logger.Error("config tavern_redis_url is not valid or missing")
|
||||
return err
|
||||
}
|
||||
|
||||
for region := range config.RegionStorage {
|
||||
var dbconn gocommon.MongoClient
|
||||
var err error
|
||||
@ -227,7 +218,6 @@ func (tv *Tavern) prepare(ctx context.Context) error {
|
||||
mongoClient: dbconn,
|
||||
region: region,
|
||||
methods: methods,
|
||||
redisClient: redisClient,
|
||||
cm: connectionMap{
|
||||
conns: make(map[primitive.ObjectID]*connection),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user