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 Aug 2, 2023
1 parent e71de86 commit c4e396b
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 @@ -605,6 +605,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 c4e396b

Please sign in to comment.