Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add occupied slots to game rooms api #641

Open
wants to merge 3 commits into
base: feature/multiple-matches
Choose a base branch
from

Conversation

reinaldooli
Copy link
Collaborator

This is part of the changes to allow Maestro calculations to be based on the number of matches running in a Game Server.
These changes will allow maestro to receive the number of running matches in a Game Server.

Changes

  • Add running_matches param to the service definition files (proto)
  • Create/Update Room Storage with the number of running matches. Later we'll be able to aggregate the values in this storage to know the total amount of running matches by scheduler.

@@ -130,6 +130,7 @@ type GameRoom struct {
IsValidationRoom bool
LastPingAt time.Time
CreatedAt time.Time
OccupiedSlots int
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: why don't we use the same naming as the proto? IMO it would simplify maintenance and they seem to map 1:1, right?

@@ -130,6 +130,7 @@ type GameRoom struct {
IsValidationRoom bool
LastPingAt time.Time
CreatedAt time.Time
OccupiedSlots int
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: why don't we use the same naming as the proto? IMO it would simplify maintenance and they seem to map 1:1, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants