提交 4824ca71 编写于 作者: 小傅哥's avatar 小傅哥

feat:测试代码

上级 27e201ca
......@@ -29,7 +29,7 @@ public class Application {
* curl http://localhost:8091/api/hystrix/query_order_info
*/
@HystrixCommand(commandProperties = {
@HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "500")
@HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "550")
}, fallbackMethod = "queryOrderInfo_error"
)
@RequestMapping(value = "query_order_info", method = RequestMethod.GET)
......@@ -63,7 +63,7 @@ public class Application {
for (int i = 0; i < 200; i++) {
try {
emitter.send("hi xfg-dev-tech-grafana\r\n" + i);
Thread.sleep(150);
Thread.sleep(250);
} catch (Exception e) {
throw new RuntimeException(e);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册