Skip to content

Commit

Permalink
Use default CancellationTokenSource.None (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzhankoral authored Sep 11, 2024
1 parent 53522a8 commit 4c46292
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions DUI3/Speckle.Connectors.DUI/Bridge/BrowserBridge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,7 @@ public void AssociateWithBinding(IBinding binding)
// This conveniently executes the code outside the UI thread and does not block during long operations (such as sending).
_actionBlock = new ActionBlock<RunMethodArgs>(
OnActionBlock,
new ExecutionDataflowBlockOptions
{
MaxDegreeOfParallelism = 1000,
CancellationToken = new CancellationTokenSource(TimeSpan.FromDays(10000)).Token // Do not change the timespan. This time defines the session time that we enable for user.
}
new ExecutionDataflowBlockOptions { MaxDegreeOfParallelism = 1000 }
);

_logger.LogInformation("Bridge bound to front end name {FrontEndName}", binding.Name);
Expand Down

0 comments on commit 4c46292

Please sign in to comment.