Skip to content

Commit

Permalink
Update apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/…
Browse files Browse the repository at this point in the history
…service/NamespaceService.java

Co-authored-by: Jason Song <[email protected]>
  • Loading branch information
klboke and nobodyiam authored Jul 24, 2022
1 parent 1cb6f29 commit ad42aef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public List<NamespaceBO> findNamespaceBOs(String appId, Env env, String clusterN
throw new BadRequestException("namespaces not exist");
}

List<NamespaceBO> namespaceBOs = new CopyOnWriteArrayList<>();
List<NamespaceBO> namespaceBOs = Collections.synchronizedList(new LinkedList<>());
List<String> exceptionNamespaces = new CopyOnWriteArrayList<>();
CountDownLatch latch = new CountDownLatch(namespaces.size());
for (NamespaceDTO namespace : namespaces) {
Expand Down

0 comments on commit ad42aef

Please sign in to comment.