Skip to content

fix: unfollow rate limit#656

Merged
micahflee merged 1 commit into
mainfrom
fix-unfollow
Jun 5, 2026
Merged

fix: unfollow rate limit#656
micahflee merged 1 commit into
mainfrom
fix-unfollow

Conversation

@redshiftzero
Copy link
Copy Markdown
Contributor

Fixes #655. When we were unfollowing, we weren't pausing and retrying when we hit a rate limit. Now we track if we need to pause and retry (using the shouldRetry approach that we're using elsewhere).

I tested this by stubbing XAccountController.isRateLimited() to inject a fake rate limit so I didn't need to wait for a 429 (also bc this would require having a ton of followed accounts). This let me ensure we see this instead of an error:

Screenshot 2026-05-30 at 10 12 47 PM

@micahflee micahflee self-requested a review June 3, 2026 15:47
@micahflee micahflee merged commit f32ee52 into main Jun 5, 2026
1 check passed
@micahflee micahflee deleted the fix-unfollow branch June 5, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

X: Unfollowing everyone isn't respecting rate limits

2 participants