Skip to content

Commit

Permalink
Pause between send stream sends
Browse files Browse the repository at this point in the history
  • Loading branch information
Redth committed Sep 23, 2022
1 parent d6883d9 commit 55b15df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Driver/GrpcExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static async Task RequestStream<TRequest, TResponse>(this AsyncDuplexStre
}

public static Task<TResponse> SendStream<TRequest, TResponse>(this AsyncClientStreamingCall<TRequest, TResponse> call, params TRequest[] requests)
=> call.SendStream<TRequest, TResponse>(TimeSpan.Zero, requests);
=> call.SendStream<TRequest, TResponse>(TimeSpan.FromMilliseconds(100), requests);

public static async Task<TResponse> SendStream<TRequest, TResponse>(this AsyncClientStreamingCall<TRequest, TResponse> call, TimeSpan delayBetween, params TRequest[] requests)
{
Expand Down

0 comments on commit 55b15df

Please sign in to comment.