We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bc46ca8 + 79cac6c commit 8eabc36Copy full SHA for 8eabc36
pkg/http/api.go
@@ -278,11 +278,14 @@ response:
278
279
// UnthrottleApp unthrottles given app.
280
func (api *APIImpl) UnthrottleApp(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
281
+ storeName := r.URL.Query().Get("store_name")
282
appName := ps.ByName("app")
- appWithStorePrefix := appName + "/"
283
+ if storeName != "" {
284
+ appName += "/" + storeName
285
+ }
286
287
for app := range api.consensusService.ThrottledAppsMap() {
- if app == appName || strings.HasPrefix(app, appWithStorePrefix) {
288
+ if app == appName {
289
err := api.consensusService.UnthrottleApp(app)
290
if err != nil {
291
api.respondGeneric(w, r, err)
0 commit comments