From 92d433c1321af79b7265cb346f8f39e6b8df646b Mon Sep 17 00:00:00 2001 From: pikaqiudeshujia Date: Mon, 6 May 2024 13:30:08 +0800 Subject: [PATCH] =?UTF-8?q?release-=20=E8=B0=83=E6=95=B4=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E5=A4=84=E7=90=86=E4=B8=9A=E5=8A=A1=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- luoo_common/src/main/java/util/IdWorker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luoo_common/src/main/java/util/IdWorker.java b/luoo_common/src/main/java/util/IdWorker.java index c32da18..f40451a 100644 --- a/luoo_common/src/main/java/util/IdWorker.java +++ b/luoo_common/src/main/java/util/IdWorker.java @@ -80,7 +80,7 @@ public class IdWorker { public synchronized long nextId() { long timestamp = timeGen(); if (timestamp < lastTimestamp) { - throw new BizException(String.format("Clock moved backwards. Refusing to generate id for %d milliseconds", lastTimestamp - timestamp)); + throw new RuntimeException(String.format("Clock moved backwards. Refusing to generate id for %d milliseconds", lastTimestamp - timestamp)); } if (lastTimestamp == timestamp) {