From 1eeb33e8510181671c9a6cdc172a20a7a60277ba Mon Sep 17 00:00:00 2001 From: Branden J Brown Date: Fri, 2 Feb 2024 21:13:16 -0600 Subject: [PATCH] ???? --- game.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/game.go b/game.go index e2600c5..889f843 100644 --- a/game.go +++ b/game.go @@ -144,10 +144,12 @@ func playerActor(ctx context.Context, p person, actions chan<- action) { func broadcast(ctx context.Context, g *game.Match, dealer, chall person, obs []observer) { // TODO(zeph): this probably should return an error or some other signal // if a player drops so that the actor knows to quit + slog.InfoContext(ctx, "send to dealer") if err := wsjson.Write(ctx, dealer.conn, g.DTO(dealer.id)); err != nil { // TODO(zeph): concede, but we need to be careful not to recurse slog.InfoContext(ctx, "lost dealer", "player", dealer.id, "err", err.Error()) } + slog.InfoContext(ctx, "send to challenger") if err := wsjson.Write(ctx, chall.conn, g.DTO(chall.id)); err != nil { // TODO(zeph): concede, but we need to be careful not to recurse slog.InfoContext(ctx, "lost challenger", "player", chall.id, "err", err.Error())