Skip to content

Commit

Permalink
await using
Browse files Browse the repository at this point in the history
  • Loading branch information
johnml1135 committed Jan 15, 2025
1 parent 8c0cfbc commit 8fd113e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ await _outboxes.UpdateAsync(
string filePath = Path.Combine(_options.CurrentValue.OutboxDir, outboxMessage.Id);
try
{
using (Stream fileStream = _fileSystem.OpenWrite(filePath))
await using (Stream fileStream = _fileSystem.OpenWrite(filePath))
{
await contentStream.CopyToAsync(fileStream, cancellationToken);
}
Expand Down

0 comments on commit 8fd113e

Please sign in to comment.