From fbaaa1303f023cfc35f33c27e324625fb1809f09 Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Sun, 9 Feb 2025 16:45:59 -0700 Subject: [PATCH] i wanna inject db into context because ez for meeee --- src/state/lobby/storage.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/state/lobby/storage.go b/src/state/lobby/storage.go index 3e6634d..cfbf1e8 100644 --- a/src/state/lobby/storage.go +++ b/src/state/lobby/storage.go @@ -9,6 +9,10 @@ type Storage interface { PlayerIDs(context.Context) ([]int, error) } +func NewDB(ctx context.Context) (DB, error) { + return DB{}, io.EOF +} + type DB struct{} func (db DB) PlayerIDs(ctx context.Context) ([]int, error) {