dkforest

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

commit 8e65640f9d0b49403b79cf2b370f971c77b1ceda
parent 76bdb9e2df2504510e01d429b8f815a004923c00
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed, 20 Dec 2023 23:16:00 -0500

cleanup

Diffstat:
Mpkg/web/handlers/poker/poker.go | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -33,6 +33,7 @@ const DealSpacing = 55 const DealerStackX = 250 const DealerStackY = 30 const NbCardsPerPlayer = 2 +const animationTime = 1000 * time.Millisecond type Poker struct { sync.Mutex @@ -1560,8 +1561,6 @@ func buildDealerTokenHtml(g *PokerGame) (html string) { return } -const animationTime = 1000 * time.Millisecond - func BuildPayloadHtml(g *PokerGame, authUser *database.User, payload any) (html string) { switch evt := payload.(type) { case GameStartedEvent: @@ -1591,7 +1590,6 @@ func BuildPayloadHtml(g *PokerGame, authUser *database.User, payload any) (html case PokerYourTurnEvent: html += drawYourTurnHtml(authUser) case PokerEvent: - fmt.Println(animationTime.String()) html += getPokerEventHtml(evt, animationTime.String()) case PokerMainPotUpdatedEvent: html += drawMainPotHtml(evt)