From 5f60a96494de959effc6045438fdabeabbf0ee66 Mon Sep 17 00:00:00 2001 From: Vincent Cloutier Date: Fri, 20 Jan 2023 14:54:37 -0500 Subject: [PATCH] magic numbers update --- src/BirdsiteLive.Domain/ActivityPubService.cs | 2 +- .../Tools/TwitterAuthenticationInitializer.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BirdsiteLive.Domain/ActivityPubService.cs b/src/BirdsiteLive.Domain/ActivityPubService.cs index 3d83a6f..ba3d659 100644 --- a/src/BirdsiteLive.Domain/ActivityPubService.cs +++ b/src/BirdsiteLive.Domain/ActivityPubService.cs @@ -112,7 +112,7 @@ namespace BirdsiteLive.Domain var signature = _cryptoService.SignAndGetSignatureHeader(date, actorUrl, targetHost, digest, usedInbox); var client = _httpClientFactory.CreateClient(); - client.Timeout = TimeSpan.FromSeconds(10); + client.Timeout = TimeSpan.FromSeconds(5); var httpRequestMessage = new HttpRequestMessage { Method = HttpMethod.Post, diff --git a/src/BirdsiteLive.Twitter/Tools/TwitterAuthenticationInitializer.cs b/src/BirdsiteLive.Twitter/Tools/TwitterAuthenticationInitializer.cs index 6e4c7c0..0a8e163 100644 --- a/src/BirdsiteLive.Twitter/Tools/TwitterAuthenticationInitializer.cs +++ b/src/BirdsiteLive.Twitter/Tools/TwitterAuthenticationInitializer.cs @@ -35,7 +35,7 @@ namespace BirdsiteLive.Twitter.Tools _logger = logger; aTimer = new System.Timers.Timer(); - aTimer.Interval = 2 * 60 * 1000; + aTimer.Interval = 45 * 1000; aTimer.Elapsed += async (sender, e) => await RefreshCred(); aTimer.Start();