fix: data race hotfix

This commit is contained in:
2025-09-25 07:24:57 +07:00
parent 34811d4132
commit 6b58b7f233
2 changed files with 28 additions and 21 deletions

View File

@@ -64,7 +64,6 @@ func (b *SafeWebsocketServerBuilder) HandleFuncWebsocket(
}
subscribedPath := strings.TrimPrefix(r.URL.Path, pattern)
fmt.Println(subscribedPath)
if subscribedPath == "" {
http.Error(w, "invalid path", http.StatusBadRequest)
return