wshandler에서 authcache제거하고 config 포맷 변경

This commit is contained in:
2023-07-15 17:08:33 +09:00
parent 269fa0f870
commit f0f459332d
5 changed files with 74 additions and 60 deletions

View File

@ -205,7 +205,7 @@ func (acg *AuthCollectionGlobal) Reload(context context.Context) error {
for r, url := range config.RegionStorage {
if _, ok := oldval[r]; !ok {
// 새로 생겼네
redisClient, err := NewRedisClient(url.Redis.URL, url.Redis.Offset["session"])
redisClient, err := NewRedisClient(url.Redis["session"])
if err != nil {
return err
}
@ -228,7 +228,7 @@ func NewAuthCollectionGlobal(context context.Context, apiToken string) (AuthColl
output := make(map[string]*AuthCollection)
for region, url := range config.RegionStorage {
redisClient, err := NewRedisClient(url.Redis.URL, url.Redis.Offset["session"])
redisClient, err := NewRedisClient(url.Redis["session"])
if err != nil {
return AuthCollectionGlobal{}, err
}