Skip to content

Commit 444eb80

Browse files
committed
fix: update log ouput
1 parent c730342 commit 444eb80

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/matching-service/processes/performmatches.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ func PerformMatching(rdb *redis.Client, matchRequest models.MatchRequest, ctx co
2525
for true {
2626

2727
err := rdb.Watch(ctx, func(tx *redis.Tx) error {
28-
// Log queue before and after matchmaking
29-
databases.PrintMatchingQueue(tx, "Before Matchmaking", ctx)
30-
defer databases.PrintMatchingQueue(tx, "After Matchmaking", ctx)
31-
3228
queuedUsernames, err := databases.GetAllQueuedUsers(tx, ctx)
3329
if err != nil {
3430
return err
@@ -43,6 +39,10 @@ func PerformMatching(rdb *redis.Client, matchRequest models.MatchRequest, ctx co
4339

4440
databases.AddUser(tx, matchRequest, ctx)
4541

42+
// Log queue before and after matchmaking
43+
databases.PrintMatchingQueue(tx, "Before Matchmaking", ctx)
44+
defer databases.PrintMatchingQueue(tx, "After Matchmaking", ctx)
45+
4646
// Find a matching user if any
4747
matchFound, err := databases.FindMatchingUser(tx, currentUsername, ctx)
4848
if err != nil {

0 commit comments

Comments
 (0)