Skip to content

Commit

Permalink
Reduce tweet attempts to just 3 (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zifah authored Sep 16, 2024
1 parent 6c6d1b1 commit 6867a3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Infrastructure/Twitter/TwitterService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ private async Task PostTweetAsync(string tweetText, CancellationToken cancellati
}
}

[AutomaticRetry(Attempts = 3)]
public async Task SendTweetAsync(string tweetText)
{
if (!Debugger.IsAttached) // To prevent tweets from getting posted while testing. Could be better, but...
Expand Down

0 comments on commit 6867a3e

Please sign in to comment.