Sfoglia il codice sorgente

去掉调试信息

release_toaliyun_real
xiaohanzi 6 anni fa
parent
commit
1ca8eb2ebf
1 ha cambiato i file con 0 aggiunte e 3 eliminazioni
  1. +0
    -3
      mallinkService/src/main/java/com/iformall/common/IdWorker.java

+ 0
- 3
mallinkService/src/main/java/com/iformall/common/IdWorker.java Vedi File

@@ -120,9 +120,7 @@ public class IdWorker {
* @return SnowflakeId
*/
public synchronized long nextId() {
logger.info(">>>>>workerId start");
long timestamp = timeGen();
logger.info(">>>>>workerId timestamp"+timestamp);
//如果当前时间小于上一次ID生成的时间戳,说明系统时钟回退过这个时候应当抛出异常
if (timestamp < lastTimestamp) {
throw new RuntimeException(
@@ -142,7 +140,6 @@ public class IdWorker {
else {
sequence = 0L;
}
logger.info(">>>>>workerId sequence"+sequence);
//上次生成ID的时间截
lastTimestamp = timestamp;



Caricamento…
Annulla
Salva