Skip to content

Commit

Permalink
[backend] skrajšaj čas čakanja
Browse files Browse the repository at this point in the history
  • Loading branch information
mytja committed Oct 28, 2023
1 parent 2baeeef commit 657cb3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/internal/ws/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ func (s *serverImpl) Results(gameId string) {
s.logger.Debugw("radelci dodani vsem udeležencem igre")

go func() {
for i := 0; i <= 15; i++ {
for i := 0; i <= 10; i++ {
s.Broadcast(
"",
gameId,
&messages.Message{
Data: &messages.Message_GameStartCountdown{GameStartCountdown: &messages.GameStartCountdown{Countdown: int32(15 - i)}},
Data: &messages.Message_GameStartCountdown{GameStartCountdown: &messages.GameStartCountdown{Countdown: int32(10 - i)}},
},
)
time.Sleep(time.Second)
Expand Down

0 comments on commit 657cb3d

Please sign in to comment.