Skip to content

Commit

Permalink
Use MaxTaskTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed Apr 18, 2022
1 parent 28eac95 commit d2af6c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OracleService/OracleService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ private void SyncPendingQueue(DataCache snapshot)
if (!protocols.TryGetValue(uri.Scheme, out IOracleProtocol protocol))
return (OracleResponseCode.ProtocolNotSupported, null);

using CancellationTokenSource ctsTimeout = new(Settings.Default.Https.Timeout);
using CancellationTokenSource ctsTimeout = new(Settings.Default.MaxTaskTimeout);
using CancellationTokenSource ctsLinked = CancellationTokenSource.CreateLinkedTokenSource(cancelSource.Token, ctsTimeout.Token);

try
Expand Down

0 comments on commit d2af6c5

Please sign in to comment.