Skip to content

Commit

Permalink
Move RequestStream.CompleteAsync in try block
Browse files Browse the repository at this point in the history
  • Loading branch information
w1am committed Feb 13, 2024
1 parent fcebd76 commit 6e70d01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EventStore.Client.Streams/EventStoreClient.Append.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ await call.RequestStream.WriteAsync(
}
).ConfigureAwait(false);
}

await call.RequestStream.CompleteAsync().ConfigureAwait(false);
} catch (RpcException) {
// Do nothing so that RpcExceptions propagate to the call.ResponseAsync and be translated by the TypedInterceptor
}

await call.RequestStream.CompleteAsync().ConfigureAwait(false);

var response = await call.ResponseAsync.ConfigureAwait(false);

if (response.Success != null) {
Expand Down

0 comments on commit 6e70d01

Please sign in to comment.