chore: removing unnecessary comment

This commit is contained in:
2025-05-12 20:51:21 +01:00
parent ad2a70aaf3
commit 019c4c6b0c

View File

@ -170,16 +170,6 @@ func CreateEventsHandler(notifier *Notifier[Notification]) http.HandlerFunc {
notifications := splitter.Add(id) notifications := splitter.Add(id)
defer splitter.Remove(id) defer splitter.Remove(id)
// if err := notifier.Create(userId.String()); err != nil {
// // TODO: this could be better.
// // EG: The user could attempt to create many connections
// // and they just get a 500, with no explanation.
// fmt.Println(err)
// w.WriteHeader(http.StatusInternalServerError)
// // w.(http.Flusher).Flush()
// return
// }
for { for {
select { select {
case <-r.Context().Done(): case <-r.Context().Done():