|
@@ -146,7 +146,7 @@ public class ApiFlowLimitedInterceptor implements HandlerInterceptor {
|
|
|
|
|
|
permitsPerSecondMap.putAll(updated);
|
|
|
|
|
|
- Util.sleep(30);
|
|
|
+ Util.sleep(10);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -194,7 +194,7 @@ public class ApiFlowLimitedInterceptor implements HandlerInterceptor {
|
|
|
}
|
|
|
|
|
|
response.setStatus(HttpStatus.SERVICE_UNAVAILABLE.value());
|
|
|
- ServletUtil.returnJson(new StatusResponse("503", "limited"), response);
|
|
|
+ ServletUtil.returnJson(new StatusResponse("503", "limited. G"), response);
|
|
|
return false;
|
|
|
}
|
|
|
|
|
@@ -228,7 +228,7 @@ public class ApiFlowLimitedInterceptor implements HandlerInterceptor {
|
|
|
}
|
|
|
|
|
|
response.setStatus(HttpStatus.SERVICE_UNAVAILABLE.value());
|
|
|
- ServletUtil.returnJson(new StatusResponse("503", "limited"), response);
|
|
|
+ ServletUtil.returnJson(new StatusResponse("503", "limited. S"), response);
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
@@ -291,11 +291,11 @@ public class ApiFlowLimitedInterceptor implements HandlerInterceptor {
|
|
|
}
|
|
|
|
|
|
if (INTERFACE_LOG.isDebugEnabled()) {
|
|
|
- INTERFACE_LOG.debug("[Limited] ER. mapping=" + apiInfo.getMapping());
|
|
|
+ INTERFACE_LOG.debug("[Limited]. ER. mapping=" + apiInfo.getMapping());
|
|
|
}
|
|
|
|
|
|
response.setStatus(HttpStatus.SERVICE_UNAVAILABLE.value());
|
|
|
- ServletUtil.returnJson(new StatusResponse("503", "limited"), response);
|
|
|
+ ServletUtil.returnJson(new StatusResponse("503", "limited. ER"), response);
|
|
|
return false;
|
|
|
}
|
|
|
return true;
|