Skip to content

Commit

Permalink
RavenDB-12945 fix StreamContentWithConfirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
karmeli87 committed Nov 5, 2024
1 parent b50b099 commit df62166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Raven.Client/Documents/Smuggler/DatabaseSmuggler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,9 @@ public StreamContentWithConfirmation(Stream content, TaskCompletionSource<object
}
#if NET6_0_OR_GREATER
protected override Task SerializeToStreamAsync(Stream stream, TransportContext context, CancellationToken cancellationToken) => SerializeToStreamAsyncCore(stream, context, cancellationToken);
#endif
#else
protected override Task SerializeToStreamAsync(Stream stream, TransportContext context) => SerializeToStreamAsyncCore(stream, context, CancellationToken.None);

#endif
private async Task SerializeToStreamAsyncCore(Stream stream, TransportContext context, CancellationToken token)
{
_parent?.ForTestingPurposes?.BeforeSerializeToStreamAsync?.Invoke();
Expand Down

0 comments on commit df62166

Please sign in to comment.