Skip to content

Commit

Permalink
Fix for earlier platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcweber committed Nov 13, 2023
1 parent 53f5d75 commit 07cdaca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Providers.Core/Factory/WebSocketGremlinqClientFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private record struct ResponseMessageEnvelope(Guid? RequestId, ResponseStatus? S
private readonly SemaphoreSlim _sendLock = new(1);
private readonly CancellationTokenSource _cts = new();
private readonly IGremlinQueryEnvironment _environment;
private readonly TaskCompletionSource _startTcs = new();
private readonly TaskCompletionSource<int> _startTcs = new();
private readonly ConcurrentDictionary<Guid, Channel> _channels = new();

public WebSocketGremlinqClient(GremlinServer server, Action<ClientWebSocketOptions> optionsTransformation, IGremlinQueryEnvironment environment)
Expand Down Expand Up @@ -232,7 +232,7 @@ private async Task SendCore(RequestMessage requestMessage, CancellationToken ct)
if (_client.State == WebSocketState.None)
{
await _client.ConnectAsync(_server.Uri, ct);
_startTcs.TrySetResult();
_startTcs.TrySetResult(0);
}

if (_environment.Serializer.TryTransform(requestMessage, _environment, out byte[]? serializedRequest))
Expand Down

0 comments on commit 07cdaca

Please sign in to comment.