debug catalog

This commit is contained in:
mr
2026-04-30 14:37:36 +02:00
parent c03b43f844
commit 74f01193fa
6 changed files with 36 additions and 15 deletions

View File

@@ -85,7 +85,7 @@ func Websocket(ctx context.Context, user string, groups []string, dataType int,
infrastructure.SearchMu.Unlock()
}
fmt.Println("CLOSE !")
infrastructure.EmitNATS(user, nil, tools.PropalgationMessage{
go infrastructure.EmitNATS(user, nil, tools.PropalgationMessage{
Action: tools.PB_CLOSE_SEARCH,
DataType: dataType,
})
@@ -93,6 +93,7 @@ func Websocket(ctx context.Context, user string, groups []string, dataType int,
for {
select {
case msg, ok := <-infrastructure.SearchStream[user]:
fmt.Println("msg", msg, ok)
if !ok {
continue
}