From dc322dd36552fa56b49a3c22b6cdc4160be38a45 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Fri, 3 May 2019 14:21:42 +0900 Subject: [PATCH] Removed SSE messages --- pages/sse/sse.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pages/sse/sse.go b/pages/sse/sse.go index eca35bdc..3a03b534 100644 --- a/pages/sse/sse.go +++ b/pages/sse/sse.go @@ -1,7 +1,6 @@ package sse import ( - "fmt" "net/http" "github.com/animenotifier/notify.moe/components/css" @@ -24,12 +23,10 @@ func Events(ctx *aero.Context) string { return ctx.Error(http.StatusUnauthorized, "Not logged in") } - fmt.Println(user.Nick, "receiving live events") stream := aero.NewEventStream() user.AddEventStream(stream) go func() { - defer fmt.Println(user.Nick, "disconnected, stop sending events") defer user.RemoveEventStream(stream) // Send the ETag for the scripts