Skip to content

Commit

Permalink
fix: private method was not used
Browse files Browse the repository at this point in the history
  • Loading branch information
aneojgurhem committed Dec 18, 2023
1 parent ae2b85c commit 1aafa59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Client/src/Common/Submitter/BaseClientSubmitter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;

using ArmoniK.Api.Client;
using ArmoniK.Api.Client.Submitter;
using ArmoniK.Api.Common.Utils;
using ArmoniK.Api.gRPC.V1;
using ArmoniK.Api.gRPC.V1.Events;
Expand Down Expand Up @@ -676,7 +676,6 @@ public byte[] GetResult(string taskId,
ResultId = resultId,
Session = SessionId.Id,
};

using var channel = ChannelPool.GetChannel();
var eventsClient = new Events.EventsClient(channel);
eventsClient.WaitForResultsAsync(SessionId.Id,
Expand Down
8 changes: 4 additions & 4 deletions Client/src/Common/Submitter/EventsClientExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ private static FiltersAnd ResultsFilter(string resultId)
},
};

private static async Task WaitForResultsAsync(this Events.EventsClient client,
string sessionId,
ICollection<string> resultIds,
CancellationToken cancellationToken)
internal static async Task WaitForResultsAsync(this Events.EventsClient client,
string sessionId,
ICollection<string> resultIds,
CancellationToken cancellationToken)
{
var resultsNotFound = new HashSet<string>(resultIds);
while (resultsNotFound.Any())
Expand Down

0 comments on commit 1aafa59

Please sign in to comment.