Skip to content

Commit

Permalink
match.go changes
Browse files Browse the repository at this point in the history
  • Loading branch information
chiaryan committed Oct 20, 2024
1 parent e94592d commit c0e2088
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/matching-service/processes/match.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c0e2088

Please sign in to comment.