Skip to content

Commit

Permalink
refactor(bot-processor): simplify createStrategyRunner
Browse files Browse the repository at this point in the history
  • Loading branch information
bludnic committed May 16, 2024
1 parent 9d591f5 commit 372d3ed
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/bot-processor/src/strategy-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,6 @@ export function createStrategyRunner<T extends IBotConfiguration>(options: {
const { botConfig, store, exchange, botTemplate } = options;

const botControl = new BotControl(store, botConfig);
const manager = new StrategyRunner(
botControl,
botConfig,
exchange,
botTemplate,
);

return manager;
return new StrategyRunner(botControl, botConfig, exchange, botTemplate);
}

0 comments on commit 372d3ed

Please sign in to comment.