diff --git a/udf-starter-id/src/main/java/org/itkk/udf/id/IdWorkerFactory.java b/udf-starter-id/src/main/java/org/itkk/udf/id/IdWorkerFactory.java index 9e466a7..ec681da 100644 --- a/udf-starter-id/src/main/java/org/itkk/udf/id/IdWorkerFactory.java +++ b/udf-starter-id/src/main/java/org/itkk/udf/id/IdWorkerFactory.java @@ -369,7 +369,7 @@ public class IdWorkerFactory { //获得缓存数据 CacheValue cacheValue = (CacheValue) redisTemplate.opsForValue().get(key); //比较本地的IP和端口号 - if (cacheValue.getHost().equals(this.host) && cacheValue.getPort() == this.port) { //一致 , 同步本地缓存 + if (cacheValue.getHost().equals(this.host) && cacheValue.getPort() == this.port) { //一致,同步本地缓存 //获得idWorker , 同步本地缓存 idWorker = this.putNxLocalCache(key, datacenterId, workerId); } else { //不一致 , 走远程调用