diff options
Diffstat (limited to 'internal/casino/manager.go')
| -rw-r--r-- | internal/casino/manager.go | 8 |
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() |
