Skip to content

Commit

Permalink
perf(websocket): change WebSocketEvent to be a struct
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonboukheir committed Dec 20, 2022
1 parent 4b4b4e1 commit 1ae34c2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions Runtime/Algorand.Unity.WalletConnect/JsonRpcClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,6 @@ private async UniTaskVoid PollJsonRpcMessages(CancellationToken cancellationToke
while (true)
{
var evt = await webSocketClient.PollUntilEvent(cancellationToken);
if (evt == null)
return;
switch (evt.Type)
{
case WebSocketEventType.Payload:
Expand Down
1 change: 0 additions & 1 deletion Runtime/Algorand.Unity.WebSocket/NativeWebSocketClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Net.WebSockets;
using System.Threading;
using Cysharp.Threading.Tasks;
using UnityEngine;

namespace Algorand.Unity.WebSocket
{
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Algorand.Unity.WebSocket/WebSocketEvent.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Algorand.Unity.WebSocket
{
public class WebSocketEvent
public struct WebSocketEvent
{
public enum WebSocketEventType
{
Expand Down

0 comments on commit 1ae34c2

Please sign in to comment.