Skip to content

Commit

Permalink
fix #1380
Browse files Browse the repository at this point in the history
  • Loading branch information
呈铭 committed Mar 11, 2024
1 parent 2598309 commit 1ff9049
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.alibaba.nacos.api.naming.pojo.Instance;
import com.alipay.sofa.rpc.client.ProviderGroup;
import com.alipay.sofa.rpc.client.ProviderInfo;
import com.alipay.sofa.rpc.common.annotation.VisibleForTesting;
import com.alipay.sofa.rpc.common.utils.CommonUtils;
import com.alipay.sofa.rpc.common.utils.StringUtils;
import com.alipay.sofa.rpc.config.ConsumerConfig;
Expand Down Expand Up @@ -360,7 +361,7 @@ public Properties getNacosConfig() {
*
* @return
*/
@Deprecated
@VisibleForTesting
public NacosRegistryProviderObserver getProviderObserver() {
return providerObserver;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ public void tearDown() {
}

@Test
public void testMulitInit() throws InterruptedException {
public void testMuiltInit() throws InterruptedException {
ExecutorService executorService = Executors.newFixedThreadPool(10);
final CountDownLatch latch = new CountDownLatch(1);
final CountDownLatch latch = new CountDownLatch(10);
Set<NacosRegistryProviderObserver> sets = new ConcurrentHashSet<>();

for (int i = 0; i < 10; i++) {
Expand Down

0 comments on commit 1ff9049

Please sign in to comment.