From 6867a3eec6493f140e5880ceb090d25cc8051c6b Mon Sep 17 00:00:00 2001 From: Hafiz Adewuyi Date: Mon, 16 Sep 2024 23:29:23 +0300 Subject: [PATCH] Reduce tweet attempts to just 3 (#111) --- Infrastructure/Twitter/TwitterService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Infrastructure/Twitter/TwitterService.cs b/Infrastructure/Twitter/TwitterService.cs index 0b6eb53..5dc8057 100644 --- a/Infrastructure/Twitter/TwitterService.cs +++ b/Infrastructure/Twitter/TwitterService.cs @@ -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...