Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Akka.Analyzer AK2001 warnings #200

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

Arkatufus
Copy link
Contributor

Changes

Fix Akka.Analyzer AK2001 warnings (sharding related)

Copy link
Contributor Author

@Arkatufus Arkatufus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self review

@@ -208,8 +208,7 @@ public static HashCodeMessageExtractor CreateCounterMessageRouter()
return o switch
{
IWithCounterId counterId => counterId.CounterId,
ShardRegion.StartEntity startEntity => startEntity.EntityId,
_ => string.Empty
_ => null
Copy link
Contributor Author

@Arkatufus Arkatufus Jan 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will produce a Possible null reference return (CS8603) warning during build until akkadotnet/akka.net#7059 fix is released (1.5.16)

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Aaronontheweb Aaronontheweb added this pull request to the merge queue Jan 12, 2024
Merged via the queue into akkadotnet:dev with commit dd85502 Jan 12, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants