From 96e0f53cae4fe5df62e9770d35637009752cd27b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Schmidt?= <9435005+AnSch1510@users.noreply.github.com> Date: Sat, 14 Dec 2024 23:01:24 +0100 Subject: [PATCH] move GroupCodeGenerator out of loop --- src/server/host/Services/EventInstanceService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/host/Services/EventInstanceService.cs b/src/server/host/Services/EventInstanceService.cs index e51118e..e7a926e 100644 --- a/src/server/host/Services/EventInstanceService.cs +++ b/src/server/host/Services/EventInstanceService.cs @@ -58,9 +58,9 @@ var timeslot in @event.Timeslots.Where(x => var playerPairScores = new Dictionary(); var instances = new List(); + var groupCodeGenerator = new GroupCodeGenerator(); foreach (var kv in timeslotPlayers) { - var groupCodeGenerator = new GroupCodeGenerator(); var timeslot = kv.Key; var players = kv.Value; var groups = GeneratePlayerGroups(