mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-13 21:52:08 +00:00
feat: promote accepted proposals from API
This commit is contained in:
@@ -27,7 +27,7 @@ func candidates() []domain.Candidate {
|
||||
now := time.Unix(1000, 0).UTC()
|
||||
result := make([]domain.Candidate, 4)
|
||||
for i := range result {
|
||||
result[i] = domain.Candidate{TicketID: "ticket-" + string(rune('1'+i)), PlayerID: "player-" + string(rune('1'+i)), Playlist: domain.Casual, EnqueuedAt: now.Add(time.Duration(i) * time.Second), PredictedRTT: map[string]float64{"EU": 20}}
|
||||
result[i] = domain.Candidate{TicketID: "ticket-" + string(rune('1'+i)), PlayerID: "player-" + string(rune('1'+i)), Playlist: domain.Casual, ProtocolVersion: 1, EnqueuedAt: now.Add(time.Duration(i) * time.Second), PredictedRTT: map[string]float64{"EU": 20}}
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user