diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/csharp/Grpc.Core.Tests/ClientServerTest.cs | 4 | ||||
-rw-r--r-- | src/csharp/Grpc.Core/Calls.cs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/csharp/Grpc.Core.Tests/ClientServerTest.cs b/src/csharp/Grpc.Core.Tests/ClientServerTest.cs index c91efe53b4..8c4b92fbad 100644 --- a/src/csharp/Grpc.Core.Tests/ClientServerTest.cs +++ b/src/csharp/Grpc.Core.Tests/ClientServerTest.cs @@ -179,7 +179,7 @@ namespace Grpc.Core.Tests { await callResult.Result; } - catch(RpcException e) + catch (RpcException e) { Assert.AreEqual(StatusCode.Unknown, e.Status.StatusCode); } @@ -201,7 +201,7 @@ namespace Grpc.Core.Tests { await callResult.Result; } - catch(RpcException e) + catch (RpcException e) { Assert.AreEqual(StatusCode.Cancelled, e.Status.StatusCode); } diff --git a/src/csharp/Grpc.Core/Calls.cs b/src/csharp/Grpc.Core/Calls.cs index c2397290fd..a8d2b9498e 100644 --- a/src/csharp/Grpc.Core/Calls.cs +++ b/src/csharp/Grpc.Core/Calls.cs @@ -95,7 +95,7 @@ namespace Grpc.Core { if (token.CanBeCanceled) { - token.Register( () => asyncCall.Cancel() ); + token.Register(() => asyncCall.Cancel()); } } |