Skip to content

Commit

Permalink
Update JsonRpcConnection.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
LPeter1997 committed Oct 21, 2023
1 parent cbea2ab commit 32422c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Draco.JsonRpc/JsonRpcConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ public async Task SendNotificationAsync(string method, object? @params)
await this.SendMessageAsync(notification);
}

protected Task SendMessageAsync(TMessage message) =>
this.outgoingMessages.Writer.WriteAsync(message).AsTask();
protected async Task SendMessageAsync(TMessage message) =>
await this.outgoingMessages.Writer.WriteAsync(message);

protected void SendMessage(TMessage message) =>
this.outgoingMessages.Writer.TryWrite(message);
Expand Down

0 comments on commit 32422c1

Please sign in to comment.