Skip to content

Commit

Permalink
Fix spelling error.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Jan 11, 2024
1 parent 04f798e commit 070adb5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion YDotNet/Protocol/Messages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public record UnknownMessage(ulong Identifier) : BaseMessage;
/// <remarks>
/// See: https://github.com/yjs/y-protocols/blob/master/awareness.js.
/// </remarks>
public record QueryAwarnessMessage : BaseMessage
public record QueryAwarenessMessage : BaseMessage
{
/// <summary>
/// Identifier for the this message.
Expand Down
2 changes: 1 addition & 1 deletion YDotNet/Protocol/ProtocolReadExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static async ValueTask<BaseMessage> ReadNextMessageAsync(this Decoder dec
case SyncMessage.BaseIdentifier:
return await ReadSyncMessageAsync(decoder, ct).ConfigureAwait(false);

case QueryAwarnessMessage.Identifier:
case QueryAwarenessMessage.Identifier:
return await ReadAwarenessMessageAsync(decoder, ct).ConfigureAwait(false);

default:
Expand Down
4 changes: 2 additions & 2 deletions YDotNet/Protocol/ProtocolWriteExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ public static async Task WriteAsync(this Encoder encoder, AuthErrorMessage messa
/// The task representing the async operation.
/// </returns>
/// <exception cref="ArgumentNullException"><paramref name="message"/> is null.</exception>
public static async Task WriteAsync(this Encoder encoder, QueryAwarnessMessage message, CancellationToken ct)
public static async Task WriteAsync(this Encoder encoder, QueryAwarenessMessage message, CancellationToken ct)
{
ArgumentNullException.ThrowIfNull(message);

await encoder.WriteVarUintAsync(QueryAwarnessMessage.Identifier, ct).ConfigureAwait(false);
await encoder.WriteVarUintAsync(QueryAwarenessMessage.Identifier, ct).ConfigureAwait(false);
}

/// <summary>
Expand Down

0 comments on commit 070adb5

Please sign in to comment.