Skip to content

Commit

Permalink
cmd: Refresh rules in api mode
Browse files Browse the repository at this point in the history
Signed-off-by: arekkas <[email protected]>
  • Loading branch information
arekkas authored and arekkas committed Aug 1, 2018
1 parent d211641 commit 08204e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/serve_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ HTTP CONTROLS
n.UseHandler(judgeHandler)
ch := cors.New(corsx.ParseOptions()).Handler(n)

go refreshKeys(keyManager)
go refreshKeys(keyManager, 0)
go refreshRules(matcher, 0)

addr := fmt.Sprintf("%s:%s", viper.GetString("HOST"), viper.GetString("PORT"))
server := graceful.WithDefaults(&http.Server{
Expand Down

0 comments on commit 08204e8

Please sign in to comment.