code refactor
This commit is contained in:
parent
5667a6ee09
commit
ee873a4ae2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue