feat(controller): Reload api rate limits on SIGHUP

This commit is contained in:
Timothy Messier committed 2023-12-04 16:24:04 +00:00
1 parent f54f2c0fc4
commit 0bc423ebd8
8 files changed
+401 -8

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@ func createMuxWithEndpoints(c *Controller, props HandlerProperties) (http.Handle
}
mux := http.NewServeMux()
mux.Handle("/v1/", ratelimit.Handler(c.baseContext, c.rateLimiter, grpcGwMux))
mux.Handle("/v1/", ratelimit.Handler(c.baseContext, c.getRateLimiter, grpcGwMux))
mux.Handle(uiPath, handleUi(c))
isUiRequest := func(req *http.Request) bool {