commit 5ac945592e233ce0529e6cd0885b2a04330ed831
parent 9eaaac9f641f6c9b90a41bda4ba55cc053bdfdc2
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Mon, 11 Dec 2023 15:12:57 -0500
cleanup
Diffstat:
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go
@@ -1830,9 +1830,7 @@ body {
func PokerLogsHandler(c echo.Context) error {
roomID := c.Param("roomID")
- send := func(s string) {
- _, _ = c.Response().Write([]byte(s))
- }
+ send := func(s string) { _, _ = c.Response().Write([]byte(s)) }
g := PokerInstance.GetOrCreateGame(roomID)
roomLogsTopic := "room_" + roomID + "_logs"
sub := PokerPubSub.Subscribe([]string{roomLogsTopic})
@@ -1882,9 +1880,7 @@ func PokerHandler(c echo.Context) error {
authUser := c.Get("authUser").(*database.User)
- send := func(s string) {
- _, _ = c.Response().Write([]byte(s))
- }
+ send := func(s string) { _, _ = c.Response().Write([]byte(s)) }
quit := hutils.CloseSignalChan(c)
hutils.SetStreamingHeaders(c)