Skip to content

Commit

Permalink
perf: Use UniTask instead of task
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpach committed Oct 15, 2020
1 parent 7fe61e1 commit 70c9cfb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Assets/Mirror/Runtime/Transport/Kcp/KcpClientConnection.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Net;
using System.Net.Sockets;
using System.Threading.Tasks;
using Cysharp.Threading.Tasks;

namespace Mirror.KCP
Expand All @@ -20,7 +19,7 @@ public KcpClientConnection() : base()
{
}

internal async Task ConnectAsync(string host, ushort port)
internal async UniTask ConnectAsync(string host, ushort port)
{
IPAddress[] ipAddress = await Dns.GetHostAddressesAsync(host);
if (ipAddress.Length < 1)
Expand Down

0 comments on commit 70c9cfb

Please sign in to comment.