Skip to content

Commit

Permalink
[CS0420] ActorCell Warning Disable (#6683)
Browse files Browse the repository at this point in the history
* [CS0420] `ActorCell` Warning Disable

* [fix] Removed the `Volatile.Read`
  • Loading branch information
eaba authored May 4, 2023
1 parent 4b19cd1 commit f1eba91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Akka/Actor/ActorCell.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public ActorCell(ActorSystemImpl system, IInternalActorRef self, Props props, Me
/// <summary>
/// TBD
/// </summary>
public Mailbox Mailbox => Volatile.Read(ref _mailboxDoNotCallMeDirectly);
public Mailbox Mailbox => _mailboxDoNotCallMeDirectly;

/// <summary>
/// TBD
Expand Down

0 comments on commit f1eba91

Please sign in to comment.