Skip to content

Commit 424fb35

Browse files
Do not pessimize on Grpc.Core.StatusCode.DeadlineExceeded
1 parent 3e917d8 commit 424fb35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- Do not pessimize the node on Grpc.Core.StatusCode.Cancelled.
1+
- Do not pessimize the node on Grpc.Core.StatusCode.Cancelled and Grpc.Core.StatusCode.DeadlineExceeded.
22
- Dispose of WriterSession using dispose CancellationToken.
33
- BidirectionalStream is internal class.
44
- Move Metadata class to Ydb.Sdk.Services.Topic.

src/Ydb.Sdk/src/Driver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ protected override void OnRpcError(string endpoint, RpcException e)
9898
{
9999
Logger.LogWarning("gRPC error [{Status}] on channel {Endpoint}", e.Status, endpoint);
100100

101-
if (e.StatusCode == Grpc.Core.StatusCode.Cancelled)
101+
if (e.StatusCode is Grpc.Core.StatusCode.Cancelled or Grpc.Core.StatusCode.DeadlineExceeded)
102102
{
103103
return;
104104
}

0 commit comments

Comments
 (0)