fix: resolve local source run frontend errors
Some checks failed
Synchronize to Gitee / repo-sync (push) Has been cancelled
Typos Checking / Spell Check with Typos (push) Has been cancelled

This commit is contained in:
2026-06-23 16:27:13 +08:00
parent 72e2110987
commit 2abdcd899d
5 changed files with 79 additions and 62 deletions

View File

@@ -49,7 +49,7 @@ public class SseService {
// 过滤掉默认 admin 用户
if (StringUtils.isAnyBlank(userId, clientId) || "admin".equals(userId)) {
log.info("User ID or Client ID is blank, cannot add client.");
return null;
return Flux.just("HEARTBEAT: " + System.currentTimeMillis()).concatWith(Flux.never());
}
Map<String, ClientSinkWrapper> inner = userClients.computeIfAbsent(userId,
k -> Collections.synchronizedMap(new LinkedHashMap<>()));