From 5881214631e197e3900f6ddc610d7751947868ef Mon Sep 17 00:00:00 2001 From: "cloud.huang" Date: Thu, 3 Jan 2019 18:43:53 +0800 Subject: [PATCH] #562 Limiter DEFAULT_LIMIT optimization --- .../java/com/alibaba/nacos/client/config/impl/Limiter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/main/java/com/alibaba/nacos/client/config/impl/Limiter.java b/client/src/main/java/com/alibaba/nacos/client/config/impl/Limiter.java index 4271b84a6..bf32d3d40 100644 --- a/client/src/main/java/com/alibaba/nacos/client/config/impl/Limiter.java +++ b/client/src/main/java/com/alibaba/nacos/client/config/impl/Limiter.java @@ -42,13 +42,12 @@ public class Limiter { /** * qps 5 */ - private static final String DEFAULT_LIMIT = "5"; private static double limit = 5; static { try { String limitTimeStr = System - .getProperty("limitTime", DEFAULT_LIMIT); + .getProperty("limitTime", String.valueOf(limit)); limit = Double.parseDouble(limitTimeStr); log.info("limitTime:{}", limit); } catch (Exception e) {