Skip to content

Commit cd130b3

Browse files
feat: ResourceExhausted isn't pessimize the node (#424)
1 parent 7b7943d commit cd130b3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Ydb.Sdk/src/Driver.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,11 @@ protected override void OnRpcError(string endpoint, RpcException e)
9595
{
9696
Logger.LogWarning("gRPC error [{Status}] on channel {Endpoint}", e.Status, endpoint);
9797

98-
if (e.StatusCode is Grpc.Core.StatusCode.Cancelled or Grpc.Core.StatusCode.DeadlineExceeded)
98+
if (e.StatusCode is
99+
Grpc.Core.StatusCode.Cancelled or
100+
Grpc.Core.StatusCode.DeadlineExceeded or
101+
Grpc.Core.StatusCode.ResourceExhausted
102+
)
99103
{
100104
return;
101105
}

0 commit comments

Comments
 (0)