Skip to content

Commit

Permalink
Matching sync match task should not have completion function (#2307)
Browse files Browse the repository at this point in the history
* Remove completion function reference when doing sync matching
  • Loading branch information
wxing1292 authored Dec 16, 2021
1 parent a619fd4 commit c95a34e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/matching/taskQueueManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ func (c *taskQueueManagerImpl) trySyncMatch(ctx context.Context, params addTaskP
TaskId: syncMatchTaskId,
}

task := newInternalTask(fakeTaskIdWrapper, c.completeTask, params.source, params.forwardedFrom, true)
task := newInternalTask(fakeTaskIdWrapper, nil, params.source, params.forwardedFrom, true)
matched, err := c.matcher.Offer(childCtx, task)
cancel()
return matched, err
Expand Down

0 comments on commit c95a34e

Please sign in to comment.