aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/game/hub.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/game/hub.go')
-rw-r--r--backend/game/hub.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/game/hub.go b/backend/game/hub.go
index 770d257..54ea2d0 100644
--- a/backend/game/hub.go
+++ b/backend/game/hub.go
@@ -255,6 +255,10 @@ func (hubs *GameHubs) Close() {
}
}
+func (hubs *GameHubs) getHub(gameID int) *gameHub {
+ return hubs.hubs[gameID]
+}
+
func (hubs *GameHubs) RestoreFromDB(ctx context.Context) error {
games, err := hubs.q.ListGames(ctx)
if err != nil {