mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-02 13:33:07 +00:00
Fixes PluginTools interface
This commit is contained in:
parent
f6e272d2c5
commit
ade1d9943d
@ -7,7 +7,6 @@ namespace Core
|
||||
{
|
||||
public interface IPluginTools : IWorkflowTool, ILogTool, IHttpFactory, IFileTool
|
||||
{
|
||||
IWebCallTimeSet WebCallTimeSet { get; }
|
||||
IK8sTimeSet K8STimeSet { get; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -8,7 +8,7 @@ namespace WebUtils
|
||||
IHttp CreateHttp(string id, Action<HttpClient> onClientCreated, IWebCallTimeSet timeSet);
|
||||
IHttp CreateHttp(string id);
|
||||
|
||||
IWebCallTimeSet TimeSet { get; }
|
||||
IWebCallTimeSet WebCallTimeSet { get; }
|
||||
}
|
||||
|
||||
public class HttpFactory : IHttpFactory
|
||||
@ -39,7 +39,7 @@ namespace WebUtils
|
||||
factoryOnClientCreated = onClientCreated;
|
||||
}
|
||||
|
||||
public IWebCallTimeSet TimeSet => timeSet;
|
||||
public IWebCallTimeSet WebCallTimeSet => timeSet;
|
||||
|
||||
public IHttp CreateHttp(string id, Action<HttpClient> onClientCreated)
|
||||
{
|
||||
|
||||
@ -215,7 +215,7 @@ namespace CodexClient
|
||||
|
||||
private T OnCodexNoRetry<T>(Func<CodexApiClient, Task<T>> action)
|
||||
{
|
||||
var timeSet = httpFactory.TimeSet;
|
||||
var timeSet = httpFactory.WebCallTimeSet;
|
||||
var noRetry = new Retry(nameof(OnCodexNoRetry),
|
||||
maxTimeout: TimeSpan.FromSeconds(1.0),
|
||||
sleepAfterFail: TimeSpan.FromSeconds(2.0),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user