Skip to content

Commit

Permalink
Decrease GameController update loop time
Browse files Browse the repository at this point in the history
Decreased the GameController update loop time from 10s to 2s. Better UX
if user changes the server URL and games need to be fetched. The fetch
does feel more "instant" for the user, than with the 10s as before.
  • Loading branch information
seternate committed Jun 7, 2024
1 parent cdfac0c commit 4f12942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (controller *Controller) WithStatusController() *Controller {
}

func (controller *Controller) WithGameController() *Controller {
controller.Game = NewGameController(controller, 10*time.Second)
controller.Game = NewGameController(controller, 2*time.Second)
return controller
}

Expand Down

0 comments on commit 4f12942

Please sign in to comment.