games inits itself
This commit is contained in:
@@ -31,12 +31,16 @@ func run(ctx context.Context) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
games, err := NewGames(ctx, db)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
S := &S{
|
||||
ctx: ctx,
|
||||
limiter: rate.NewLimiter(10, 10),
|
||||
config: config,
|
||||
games: NewGames(db),
|
||||
games: games,
|
||||
}
|
||||
|
||||
s := &http.Server{
|
||||
|
||||
Reference in New Issue
Block a user