Skip to content

Commit

Permalink
Add IApi parameter to IJobQueueHandler.Initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanoRaggi committed Jun 14, 2017
1 parent f61d2e7 commit b9ea48e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Common/Interfaces/IJobQueueHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public interface IJobQueueHandler
/// <summary>
/// Initialize the internal state
/// </summary>
void Initialize();
void Initialize(IApi api);

/// <summary>
/// Request the next task to run through the engine:
Expand Down
2 changes: 1 addition & 1 deletion Engine/LeanEngineSystemHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void Initialize()
{
Api.Initialize(Config.GetInt("job-user-id", 0), Config.Get("api-access-token", ""), Config.Get("data-folder"));
Notify.Initialize();
JobQueue.Initialize();
JobQueue.Initialize(Api);
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Queues/JobQueue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private string AlgorithmLocation
/// <summary>
/// Initialize the job queue:
/// </summary>
public void Initialize()
public void Initialize(IApi api)
{
//
}
Expand Down

0 comments on commit b9ea48e

Please sign in to comment.