Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kimmking committed Dec 18, 2020
1 parent c163ed9 commit cde9d3a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ public static <T, filters> T createFromRegistry(final Class<T> serviceClass, fin
// 加filte之一

// curator Provider list from zk
List<String> invokers = new ArrayList<>(); // 监听zk的临时节点,根据事件更新这个list
List<String> invokers = new ArrayList<>();
// 1. 简单:从zk拿到服务提供的列表
// 2. 挑战:监听zk的临时节点,根据事件更新这个list(注意,需要做个全局map保持每个服务的提供者List)

List<String> urls = router.route(invokers);

Expand Down

0 comments on commit cde9d3a

Please sign in to comment.