Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNK committed Apr 28, 2024
1 parent d1b6ba6 commit 53b2d35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
using Grpc.Core.Interceptors;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

namespace Grpc.AspNetCore.ClientFactory;

Expand Down Expand Up @@ -133,7 +132,7 @@ public ContextPropagationInterceptor(GrpcContextPropagationOptions options, IHtt
return response;
}

// Automatically dispose state when awaiting the response.
// Automatically dispose state after awaiting the response.
private static async Task<TResponse> OnResponseAsync<TResponse>(Task<TResponse> task, IDisposable state)
{
try
Expand Down Expand Up @@ -232,7 +231,7 @@ public void Dispose()
}
}

// Automatically dispose state when read to the end of the stream.
// Automatically dispose state after reading to the end of the stream.
private sealed class ResponseStreamWrapper<TResponse> : IAsyncStreamReader<TResponse>
{
private readonly IAsyncStreamReader<TResponse> _inner;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#endregion

using System.Net;
using System.Runtime.CompilerServices;
using Greet;
using Grpc.AspNetCore.Server.ClientFactory.Tests.TestObjects;
using Grpc.Core;
Expand Down

0 comments on commit 53b2d35

Please sign in to comment.