Skip to content

Commit 75192fd

Browse files
CopilotReubenBond
andcommitted
Clarify overflow comment in DelayDeactivation
Co-authored-by: ReubenBond <203839+ReubenBond@users.noreply.github.com>
1 parent 679a746 commit 75192fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Orleans.Runtime/Catalog/ActivationData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ public void DelayDeactivation(TimeSpan timespan)
482482
{
483483
if (timespan == TimeSpan.MaxValue || timespan == Timeout.InfiniteTimeSpan)
484484
{
485-
// otherwise creates negative time.
485+
// Adding these values to the current time would overflow, so use DateTime.MaxValue directly.
486486
KeepAliveUntil = DateTime.MaxValue;
487487
}
488488
else if (timespan <= TimeSpan.Zero)

0 commit comments

Comments
 (0)