mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 10:58:35 +08:00
【优化】租户功能,框架优化
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"pandax/base/global"
|
||||
"regexp"
|
||||
"sync"
|
||||
)
|
||||
@@ -33,7 +32,6 @@ func GetRegexp(pattern string) (regex *regexp.Regexp, err error) {
|
||||
// it compiles the pattern and creates one.
|
||||
regex, err = regexp.Compile(pattern)
|
||||
if err != nil {
|
||||
global.Log.Warnf(`regexp.Compile failed for pattern "%s"`, pattern)
|
||||
return
|
||||
}
|
||||
// Cache the result object using writing lock.
|
||||
|
||||
Reference in New Issue
Block a user