From 49d9fa996e825a3349955c41d13307f33d0e7421 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 29 Jul 2024 22:27:20 +0900 Subject: refactor(backend) --- backend/game/hub.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'backend/game/hub.go') 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 { -- cgit v1.2.3-70-g09d2