code refactor

This commit is contained in:
UlricQin 2020-11-12 11:24:54 +08:00
parent 5667a6ee09
commit ee873a4ae2
1 changed files with 1 additions and 2 deletions

View File

@ -9,9 +9,9 @@ import (
"github.com/toolkits/pkg/logger"
"github.com/toolkits/pkg/slice"
"github.com/didi/nightingale/src/common/address"
"github.com/didi/nightingale/src/models"
"github.com/didi/nightingale/src/modules/rdb/config"
"github.com/didi/nightingale/src/common/address"
)
func shouldBeLogin() gin.HandlerFunc {
@ -52,7 +52,6 @@ func shouldBeService() gin.HandlerFunc {
return
}
if ip != "" && slice.ContainsString(address.GetAddresses("rdb"), ip) {
c.Next()
return