Skip to content

Commit d906db3

Browse files
committed
fixed a CME issue during stopping inbox service
1 parent 4885cc1 commit d906db3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bifromq-inbox/bifromq-inbox-server/src/main/java/com/baidu/bifromq/inbox/server/InboxFetcherRegistry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public final class InboxFetcherRegistry implements IInboxFetcherRegistry {
3232
public void reg(IInboxFetcher fetcher) {
3333
fetchers.compute(fetcher.tenantId(), (key, val) -> {
3434
if (val == null) {
35-
val = new HashMap<>();
35+
val = new ConcurrentHashMap<>();
3636
}
3737
IInboxFetcher prevFetcher = val.computeIfAbsent(fetcher.delivererKey(), k -> new ConcurrentHashMap<>())
3838
.put(fetcher.id(), fetcher);

0 commit comments

Comments
 (0)