Skip to content

Commit

Permalink
remove unnecessary WaitAsync (#6864)
Browse files Browse the repository at this point in the history
  • Loading branch information
timbussmann authored Sep 22, 2023
1 parent 3ad7d34 commit 6d24012
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ await StartPump(async (context, _) =>
var tcs = CreateTaskCompletionSource();
onMessageCalls.Enqueue(tcs);
// "block" current pipeline invocation
await tcs.Task.WaitAsync(TestTimeoutCancellationToken);
await tcs.Task;
},
(errorContext, __) => throw new Exception("unexpected error", errorContext.Exception),
transactionMode,
Expand Down

0 comments on commit 6d24012

Please sign in to comment.