Skip to content

Commit

Permalink
Fix: Duplicate tweet scheduling loops in start method
Browse files Browse the repository at this point in the history
- Resolved an issue where `generateNewTweetLoop` was called twice in the `start` method of /packages/client-twitter/src/post.ts.\n- The method was invoked at line 174 and line 190 without any conditional checks, leading to two independent tweet scheduling loops being created.\n- Removed one of the redundant `generateNewTweetLoop` calls to ensure only a single scheduling loop is initialized.\n\nFixes #1395
  • Loading branch information
jasonqindev committed Dec 23, 2024
1 parent 77b5b7d commit 7b6d80c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/client-twitter/src/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ export class TwitterPostClient {
} else {
elizaLogger.log("Action processing loop disabled by configuration");
}
generateNewTweetLoop();
}

constructor(client: ClientBase, runtime: IAgentRuntime) {
Expand Down

0 comments on commit 7b6d80c

Please sign in to comment.