From c0e20881d80bf67d1a0491451654c18fd808ad57 Mon Sep 17 00:00:00 2001 From: Ryan Chia Date: Sun, 20 Oct 2024 19:13:16 +0800 Subject: [PATCH] match.go changes --- apps/matching-service/processes/match.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/matching-service/processes/match.go b/apps/matching-service/processes/match.go index fa94a2e79c..7864a75253 100644 --- a/apps/matching-service/processes/match.go +++ b/apps/matching-service/processes/match.go @@ -57,13 +57,13 @@ func PerformMatching(matchRequest models.MatchRequest, ctx context.Context, matc // Log down which users got matched log.Printf("Users %s and %s matched on the topic: %s with difficulty: %s", username, matchedUsername, matchedTopic, matchedDifficulty) - // Log queue after matchmaking - PrintMatchingQueue(redisClient, "After Matchmaking", context.Background()) - // Clean up redis for this match cleanUp(redisClient, username, ctx) cleanUp(redisClient, matchedUsername, ctx) + // Log queue after matchmaking + PrintMatchingQueue(redisClient, "After Matchmaking", context.Background()) + // Generate a random match ID matchId, err := utils.GenerateMatchID() if err != nil {