commit 733dd63cb09866f4354aa1d3d9a3f178a57dd1a0
parent f3657d10d4b368049f3cb8d581ef4d20ce259081
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Tue, 5 Dec 2023 17:16:20 -0500
cleanup
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pkg/web/handlers/poker.go b/pkg/web/handlers/poker.go
@@ -321,7 +321,8 @@ func (g *PokerGame) Deal(roomID string) {
g.Ongoing.Events = append(g.Ongoing.Events, evt)
}
- PokerPubSub.Pub(roomTopic, GameStartedEvent{DeckHash: utils.MD5([]byte(strings.Join(g.Ongoing.Deck, "")))})
+ deckHash := utils.MD5([]byte(strings.Join(g.Ongoing.Deck, "")))
+ PokerPubSub.Pub(roomTopic, GameStartedEvent{DeckHash: deckHash})
// Deal cards
for j := 1; j <= 2; j++ {