Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
Debug : run poc limiter初始化位置错误
Browse files Browse the repository at this point in the history
  • Loading branch information
jweny committed May 24, 2021
1 parent e073351 commit b8d01ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ func RunCli(c *cli.Context) error{
}
logging.GlobalLogger.Debug("[plugins load success]")

// 速率限制
rule.InitRate()

switch {
case url != "":
oreq, err := util.GenOriginalReq(url)
Expand Down
3 changes: 3 additions & 0 deletions poc/rule/handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ func Setup() {
Handles[AffectScript] = []HandlerFunc{ExecScriptHandle}
Handles[AffectAppendParameter] = []HandlerFunc{ExecExpressionHandle}
Handles[AffectReplaceParameter] = []HandlerFunc{ExecExpressionHandle}

// 速率限制
InitRate()
}

func getHandles(affect string) []HandlerFunc {
Expand Down

0 comments on commit b8d01ef

Please sign in to comment.