dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit a4f54a37e6d4aa197c5364620bdafee80ea119d4
parent 06e707377bca70656e079863b3fa0f840b34fd40
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Fri, 29 Dec 2023 00:06:31 -0500

cleanup

Diffstat:
Mpkg/web/handlers/api/v1/chat.go | 8--------
1 file changed, 0 insertions(+), 8 deletions(-)

diff --git a/pkg/web/handlers/api/v1/chat.go b/pkg/web/handlers/api/v1/chat.go @@ -10,7 +10,6 @@ import ( "dkforest/pkg/utils" "dkforest/pkg/web/handlers/poker" "dkforest/pkg/web/handlers/streamModals" - "dkforest/pkg/web/handlers/usersStreamsManager" "dkforest/pkg/web/handlers/utils/stream" "errors" "fmt" @@ -116,13 +115,6 @@ func ChatStreamMessagesHandler(c echo.Context) error { } defer streamItem.Cleanup() - // Keep track of users streams, so we can limit how many are open at one time per user - if item, err := usersStreamsManager.Inst.Add(authUser.ID, ""); err == nil { - defer item.Cleanup() - } else { - return nil - } - // Keep track of how many bytes we sent on the http request, so we can auto-refresh when passing a threshold bytesSent := 0 send := func(s string) {