Skip to content

Fix typos #1770

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions projects/RabbitMQ.Client.OAuth2/OAuth2Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class OAuth2ClientBuilder
/// <param name="clientId">Id of the client</param>
/// <param name="clientSecret">Secret of the client</param>
/// <param name="tokenEndpoint">Endpoint to receive the Access Token</param>
/// <param name="issuer">Issuer of the Access Token. Used to automaticly receive the Token Endpoint while building</param>
/// <param name="issuer">Issuer of the Access Token. Used to automatically receive the Token Endpoint while building</param>
/// <remarks>
/// Either <paramref name="tokenEndpoint"/> or <paramref name="issuer"/> must be provided.
/// </remarks>
Expand Down Expand Up @@ -163,7 +163,7 @@ private async Task<Uri> GetTokenEndpointFromIssuerAsync(CancellationToken cancel
httpClient.DefaultRequestHeaders.Accept.Clear();
httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));

// Build endpoint from Issuer and dicovery endpoint, we can't use the Uri overload because the Issuer Uri may not have a trailing '/'
// Build endpoint from Issuer and discovery endpoint, we can't use the Uri overload because the Issuer Uri may not have a trailing '/'
string tempIssuer = _issuer.AbsoluteUri.EndsWith("/") ? _issuer.AbsoluteUri : _issuer.AbsoluteUri + "/";
Uri discoveryEndpoint = new Uri(tempIssuer + DISCOVERY_ENDPOINT);

Expand All @@ -187,7 +187,7 @@ private async Task<Uri> GetTokenEndpointFromIssuerAsync(CancellationToken cancel

/**
* Default implementation of IOAuth2Client. It uses Client_Credentials OAuth2 flow to request a
* token. The basic constructor assumes no scopes are needed only the OAuth2 Client credentiuals.
* token. The basic constructor assumes no scopes are needed only the OAuth2 Client credentials.
* The additional constructor accepts a Dictionary with all the request parameters passed onto the
* OAuth2 request token.
*/
Expand Down
2 changes: 1 addition & 1 deletion projects/RabbitMQ.Client/Impl/Connection.Heartbeat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ await HandleMainLoopExceptionAsync(new ShutdownEventArgs(ShutdownInitiator.Libra
MaybeTerminateMainloopAndStopHeartbeatTimers();
/*
* Note: do NOT use the main loop cancellation token,
* because FininshCloseAsync immediately cancels it
* because FinishCloseAsync immediately cancels it
*/
using var cts = new CancellationTokenSource(InternalConstants.DefaultConnectionAbortTimeout);
await FinishCloseAsync(cts.Token)
Expand Down
2 changes: 1 addition & 1 deletion projects/Test/Common/IntegrationFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ protected static byte[] GetRandomBody(ushort size = 1024)
protected static Task WaitForRecoveryAsync(IConnection conn)
{
TaskCompletionSource<bool> tcs = PrepareForRecovery((AutorecoveringConnection)conn);
return WaitAsync(tcs, "recovery succeded");
return WaitAsync(tcs, "recovery succeeded");
}

protected static TaskCompletionSource<bool> PrepareForRecovery(IConnection conn)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ await _channel.QueueDeclareAsync(queueToRecoverWithException, false, false, fals
try
{
await CloseAndWaitForRecoveryAsync(conn);
await WaitAsync(tcs, "recovery succeded");
await WaitAsync(tcs, "recovery succeeded");

Assert.True(ch.IsOpen);
await AssertQueueRecoveryAsync(ch, queueToRecoverSuccessfully, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public async Task TestBlockedListenersRecovery()
}
finally
{
// NOTE: must unblock so that close succeeeds on test tear-down
// NOTE: must unblock so that close succeeds on test tear-down
await UnblockAsync();
}
}
Expand Down
Loading