Skip to content

Commit

Permalink
fixed bugs with StartEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaronontheweb committed Jan 4, 2024
1 parent b8514fb commit b431ebc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public ExtractorAdapter(IMessageExtractor underlying)
{
return message switch
{
StartEntity se => se.EntityId,
ShardingEnvelope se => se.EntityId,
_ => _underlying.EntityId(message)
};
Expand Down
3 changes: 3 additions & 0 deletions src/contrib/cluster/Akka.Cluster.Sharding/ShardRegion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,9 @@ protected override bool Receive(object message)
case RestartShard restart:
DeliverRestartShard(restart, Sender);
return true;
case StartEntity se:
DeliverMessage(se.EntityId, message, Sender);
return true;
default:
var entityId = _messageExtractor.EntityId(message);
if (entityId is null)
Expand Down

0 comments on commit b431ebc

Please sign in to comment.