Skip to content

Commit

Permalink
Merge branch 'main' into feature/add-redis-transport
Browse files Browse the repository at this point in the history
  • Loading branch information
zecit committed Apr 22, 2024
2 parents 052b17e + 564306f commit 21fb049
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ dist
/spec/mercure.html
/spec/mercure.txt
/spec/mercure.xml
.vscode
.vscode
3 changes: 3 additions & 0 deletions subscribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ func (h *Hub) SubscribeHandler(w http.ResponseWriter, r *http.Request) {
// Cleanly close the HTTP connection before the write deadline to prevent client-side errors
return
case update, ok := <-s.Receive():
h.logger.Info("Subscriber:received update")
if !ok || !h.write(rc, newSerializedUpdate(update).event) {
h.logger.Info("Subscriber:received not ok")

return
}
if heartbeatTimer != nil {
Expand Down

0 comments on commit 21fb049

Please sign in to comment.