We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 848e70a commit 7ad924bCopy full SHA for 7ad924b
packages/client-twitter/src/post.ts
@@ -627,11 +627,12 @@ export class TwitterPostClient {
627
628
const homeTimeline = await this.client.fetchTimelineForActions();
629
const results = [];
630
- let maxActionsProcessing =
+ let count = 0;
631
+ const maxActionsProcessing =
632
this.client.twitterConfig.MAX_ACTIONS_PROCESSING;
633
634
for (const tweet of homeTimeline) {
- if (maxActionsProcessing >= 2) {
635
+ if (count >= maxActionsProcessing) {
636
break;
637
}
638
try {
@@ -925,7 +926,7 @@ export class TwitterPostClient {
925
926
parsedActions: actionResponse,
927
executedActions,
928
});
- maxActionsProcessing++;
929
+ count++;
930
} catch (error) {
931
elizaLogger.error(
932
`Error processing tweet ${tweet.id}:`,
0 commit comments