Skip to content

Commit 6e96dd6

Browse files
committed
use image tag 2.0.2
1 parent df29f4b commit 6e96dd6

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

mse-simple-demo/gateway/src/main/java/com/alibabacloud/mse/demo/DemoController.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -250,28 +250,6 @@ public void run() {
250250
}
251251
}, 100, 1000000 / qps, TimeUnit.MICROSECONDS);
252252
// endregion 热点限流
253-
254-
// region 隔离规则
255-
for (int i = 0; i < 8; i++) {
256-
int finalI = i;
257-
FLOW_EXECUTOR.scheduleAtFixedRate(new Runnable() {
258-
@Override
259-
public void run() {
260-
try (CloseableHttpClient httpClient = HttpClientBuilder.create().build()) {
261-
HttpGet httpGet = new HttpGet("http://localhost:20000/A/isolate?i_id=" + finalI);
262-
httpClient.execute(httpGet);
263-
} catch (Exception ignore) {
264-
}
265-
266-
try (CloseableHttpClient httpClient = HttpClientBuilder.create().build()) {
267-
HttpGet httpGet = new HttpGet("http://localhost:20000/A/dubbo-isolate?i_id=" + finalI);
268-
httpClient.execute(httpGet);
269-
} catch (Exception ignore) {
270-
}
271-
}
272-
}, 100, 1000000 / qps, TimeUnit.MICROSECONDS);
273-
}
274-
// endregion 隔离规则
275253
}
276254

277255
if (enableSql) {

0 commit comments

Comments
 (0)