Skip to content

Commit db37681

Browse files
authored
Merge pull request #1770 from sungam3r/typo
Fix typos
2 parents 662ace3 + c1984ea commit db37681

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

projects/RabbitMQ.Client.OAuth2/OAuth2Client.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class OAuth2ClientBuilder
6464
/// <param name="clientId">Id of the client</param>
6565
/// <param name="clientSecret">Secret of the client</param>
6666
/// <param name="tokenEndpoint">Endpoint to receive the Access Token</param>
67-
/// <param name="issuer">Issuer of the Access Token. Used to automaticly receive the Token Endpoint while building</param>
67+
/// <param name="issuer">Issuer of the Access Token. Used to automatically receive the Token Endpoint while building</param>
6868
/// <remarks>
6969
/// Either <paramref name="tokenEndpoint"/> or <paramref name="issuer"/> must be provided.
7070
/// </remarks>
@@ -163,7 +163,7 @@ private async Task<Uri> GetTokenEndpointFromIssuerAsync(CancellationToken cancel
163163
httpClient.DefaultRequestHeaders.Accept.Clear();
164164
httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
165165

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

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

188188
/**
189189
* Default implementation of IOAuth2Client. It uses Client_Credentials OAuth2 flow to request a
190-
* token. The basic constructor assumes no scopes are needed only the OAuth2 Client credentiuals.
190+
* token. The basic constructor assumes no scopes are needed only the OAuth2 Client credentials.
191191
* The additional constructor accepts a Dictionary with all the request parameters passed onto the
192192
* OAuth2 request token.
193193
*/

projects/RabbitMQ.Client/Impl/Connection.Heartbeat.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ await HandleMainLoopExceptionAsync(new ShutdownEventArgs(ShutdownInitiator.Libra
120120
MaybeTerminateMainloopAndStopHeartbeatTimers();
121121
/*
122122
* Note: do NOT use the main loop cancellation token,
123-
* because FininshCloseAsync immediately cancels it
123+
* because FinishCloseAsync immediately cancels it
124124
*/
125125
using var cts = new CancellationTokenSource(InternalConstants.DefaultConnectionAbortTimeout);
126126
await FinishCloseAsync(cts.Token)

projects/Test/Common/IntegrationFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ protected static byte[] GetRandomBody(ushort size = 1024)
637637
protected static Task WaitForRecoveryAsync(IConnection conn)
638638
{
639639
TaskCompletionSource<bool> tcs = PrepareForRecovery((AutorecoveringConnection)conn);
640-
return WaitAsync(tcs, "recovery succeded");
640+
return WaitAsync(tcs, "recovery succeeded");
641641
}
642642

643643
protected static TaskCompletionSource<bool> PrepareForRecovery(IConnection conn)

projects/Test/Integration/TestConnectionTopologyRecovery.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ await _channel.QueueDeclareAsync(queueToRecoverWithException, false, false, fals
383383
try
384384
{
385385
await CloseAndWaitForRecoveryAsync(conn);
386-
await WaitAsync(tcs, "recovery succeded");
386+
await WaitAsync(tcs, "recovery succeeded");
387387

388388
Assert.True(ch.IsOpen);
389389
await AssertQueueRecoveryAsync(ch, queueToRecoverSuccessfully, false);

projects/Test/SequentialIntegration/TestConnectionRecovery.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public async Task TestBlockedListenersRecovery()
160160
}
161161
finally
162162
{
163-
// NOTE: must unblock so that close succeeeds on test tear-down
163+
// NOTE: must unblock so that close succeeds on test tear-down
164164
await UnblockAsync();
165165
}
166166
}

0 commit comments

Comments
 (0)