Skip to content

Commit

Permalink
marked EventBusUnsubscriber messages as `INoSerializationVerificati…
Browse files Browse the repository at this point in the history
…onNeeded` (#5743)

Eliminates issues with some `MinimalActorRef` actors subscribing to the `EventStream` when `akka.actor.serialize-messages = on`.
  • Loading branch information
Aaronontheweb committed Mar 22, 2022
1 parent b4b390d commit 6d3d91f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Akka/Event/EventBusUnsubscriber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ protected override void PreStart()
///
/// Registers a new subscriber to be death-watched and automatically unsubscribed.
/// </summary>
internal class Register
internal class Register : INoSerializationVerificationNeeded
{
public Register(IActorRef actor)
{
Expand All @@ -108,7 +108,7 @@ public Register(IActorRef actor)
///
/// Unsubscribes an actor that is no longer subscribed and does not need to be death-watched any longer.
/// </summary>
internal class UnregisterIfNoMoreSubscribedChannels
internal class UnregisterIfNoMoreSubscribedChannels : INoSerializationVerificationNeeded
{
public UnregisterIfNoMoreSubscribedChannels(IActorRef actor)
{
Expand Down

0 comments on commit 6d3d91f

Please sign in to comment.