Skip to content

Commit

Permalink
move GroupCodeGenerator out of loop
Browse files Browse the repository at this point in the history
  • Loading branch information
AnSch1510 committed Dec 14, 2024
1 parent 040aa35 commit 96e0f53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/host/Services/EventInstanceService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ var timeslot in @event.Timeslots.Where(x =>

var playerPairScores = new Dictionary<PlayerPair, int>();
var instances = new List<EventTimeslotInstances>();
var groupCodeGenerator = new GroupCodeGenerator();
foreach (var kv in timeslotPlayers)
{
var groupCodeGenerator = new GroupCodeGenerator();
var timeslot = kv.Key;
var players = kv.Value;
var groups = GeneratePlayerGroups(
Expand Down

0 comments on commit 96e0f53

Please sign in to comment.