aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/manager.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-18 21:36:36 -0400
committerhistoria <[not public]>2026-09-18 21:36:36 -0400
commita8a67482bbff8297a96adff65d2fd7029ed998cc (patch)
treee84f8ba636c8f2edb4d2ff8b45d7cff7298fa7cc /internal/casino/manager.go
parentff04d26ce90d6b411a04a2fb59f7c24ceefb161f (diff)
downloadthehouseoficarus-a8a67482bbff8297a96adff65d2fd7029ed998cc.tar.gz
refactor: replace economy journal with single-file pending-wager wallet
Diffstat (limited to 'internal/casino/manager.go')
-rw-r--r--internal/casino/manager.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/casino/manager.go b/internal/casino/manager.go
index d9b2c3e..f880463 100644
--- a/internal/casino/manager.go
+++ b/internal/casino/manager.go
@@ -329,8 +329,8 @@ func (m *Manager) MachineBusy(name string) bool {
// RefundAll resolves every outstanding wager by refunding committed stakes
// to their players and then closing each game's round. Graceful shutdown and
// room eviction use this: rounds cannot settle, so no player may lose a
-// stake to the shutdown itself. Refunds go through the wallet (durable,
-// journaled) and the refund events are returned for delivery.
+// stake to the shutdown itself. Refunds go through the wallet (durable
+// character saves) and the refund events are returned for delivery.
//
// It is deliberately NOT a way to clear live tables: every game discards
// the round it refunded (seats keep their last bet only for "rebet", but
@@ -414,8 +414,8 @@ func (m *Manager) RekeyRooms(idMap map[int]int) {
func (m *Manager) EvictRoom(roomID int) []Event {
prefix := fmt.Sprintf("%d:", roomID)
// Snapshot the games under the manager lock, then refund OUTSIDE it:
- // refundAll appends to the money journal and saves character files, and
- // holding m.mu across that I/O blocks every casino command and Tick.
+ // refundAll saves character files, and holding m.mu across that I/O
+ // blocks every casino command and Tick.
type evictable interface{ refundAll() []Event }
var evicted []evictable
m.mu.Lock()