Skip to content

Commit

Permalink
Make timeouts slightly more lenient (#1281)
Browse files Browse the repository at this point in the history
  • Loading branch information
karashiiro authored Jul 18, 2024
1 parent ef34854 commit 10dd1e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public async Task<IActionResult> Get(

// Database logic
var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
cts.CancelAfter(TimeSpan.FromSeconds(5));
cts.CancelAfter(TimeSpan.FromSeconds(10));

if (itemIdsArray.Length == 1)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public async Task<IActionResult> Get(
bool? hqBool = string.IsNullOrEmpty(hq) || hq.ToLowerInvariant() == "null" ? null : Util.ParseUnusualBool(hq);

var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
cts.CancelAfter(TimeSpan.FromSeconds(5));
cts.CancelAfter(TimeSpan.FromSeconds(10));

if (itemIdsArray.Length == 1)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Universalis.DbAccess/MarketBoard/ListingStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ ORDER BY unit_price
try
{
var cacheValue = await db.StringGetAsync(cacheKey, commandFlags)
.WaitAsync(TimeSpan.FromMilliseconds(500), cancellationToken);
.WaitAsync(TimeSpan.FromSeconds(2), cancellationToken);
if (cacheValue != RedisValue.Null)
{
CacheHits.Inc();
Expand Down

0 comments on commit 10dd1e8

Please sign in to comment.