devflag 분리 / gocommon으로 패키지 변경
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
package common
|
||||
package gocommon
|
||||
|
||||
import (
|
||||
"context"
|
||||
@ -110,7 +110,7 @@ func newAuthCollectionWithRedis(redisClient *redis.Client, subctx context.Contex
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
if !*Devflag {
|
||||
if !*devflag {
|
||||
logger.Error("get maingate config failed :", err)
|
||||
return nil
|
||||
}
|
||||
@ -131,7 +131,7 @@ func newAuthCollectionWithRedis(redisClient *redis.Client, subctx context.Contex
|
||||
if ttl, ok := config["maingate_session_ttl"].(float64); ok {
|
||||
sessionTTL = int64(ttl)
|
||||
}
|
||||
} else if !*Devflag {
|
||||
} else if !*devflag {
|
||||
logger.Error("get maingate config failed :", err)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user