Skip to content

Commit

Permalink
应该是非空才循环,不然会导致在使用redis注册中心时消费者引用不到服务 (#3291)
Browse files Browse the repository at this point in the history
  • Loading branch information
dadadadudu authored and beiwei30 committed Jan 29, 2019
1 parent 7f262f9 commit 58e35b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ private void doNotify(Jedis jedis, Collection<String> keys, URL url, Collection<
}
List<URL> urls = new ArrayList<>();
Map<String, String> values = jedis.hgetAll(key);
if (CollectionUtils.isEmptyMap(values)) {
if (!CollectionUtils.isEmptyMap(values)) {
for (Map.Entry<String, String> entry : values.entrySet()) {
URL u = URL.valueOf(entry.getKey());
if (!u.getParameter(Constants.DYNAMIC_KEY, true)
Expand Down

0 comments on commit 58e35b2

Please sign in to comment.