mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:26:31 +00:00
make start faster
This commit is contained in:
@@ -22,8 +22,6 @@ public interface IAuthProvider
|
||||
|
||||
public class PythonResourceLoader : IResourceLoader, IAuthProvider
|
||||
{
|
||||
private readonly ApiCredentials _credentials;
|
||||
private readonly AzaionApiClient _api;
|
||||
private readonly DealerSocket _dealer = new();
|
||||
private readonly Guid _clientId = Guid.NewGuid();
|
||||
|
||||
@@ -31,9 +29,7 @@ public class PythonResourceLoader : IResourceLoader, IAuthProvider
|
||||
|
||||
public PythonResourceLoader(ApiConfig apiConfig, ApiCredentials credentials, AzaionApiClient api)
|
||||
{
|
||||
_credentials = credentials;
|
||||
_api = api;
|
||||
//StartPython(apiConfig, credentials);
|
||||
StartPython(apiConfig, credentials);
|
||||
_dealer.Options.Identity = Encoding.UTF8.GetBytes(_clientId.ToString("N"));
|
||||
_dealer.Connect($"tcp://{SecurityConstants.ZMQ_HOST}:{SecurityConstants.ZMQ_PORT}");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user