Skip to content

Commit

Permalink
Fix nullable error in MassTransit (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
glucaci authored Jan 12, 2022
1 parent 77f3600 commit 9e8d990
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="$([MSBuild]::GetPathOfFileAbove('Nullable.props', '$(MSBuildThisFileDirectory)'))" />

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
<TargetFrameworks>net6.0;netstandard2.0</TargetFrameworks>
</PropertyGroup>

<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private void HandleReceiveStart(Activity activity, object? context)
private void HandleStop(ActivitySpanId? spanId, TimeSpan duration)
{
if (spanId.HasValue &&
_activities.TryRemove(spanId.Value, out IExecutionSegment executionSegment))
_activities.TryRemove(spanId.Value, out IExecutionSegment? executionSegment))
{
executionSegment.Duration = duration.TotalMilliseconds;
executionSegment.End();
Expand Down

0 comments on commit 9e8d990

Please sign in to comment.