Skip to content

Commit

Permalink
fixed bug with leader changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaronontheweb committed Sep 26, 2014
1 parent bc7ca2a commit 8a6166f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Akka.Cluster/ClusterReadView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public EventBusListener(Cluster cluster, ClusterReadView readView)
})
.With<ClusterEvent.RoleLeaderChanged>(changed =>
{
State = State.Copy(roleLeaderMap: State.RoleLeaderMap.Add(changed.Role, changed.Leader));
State = State.Copy(roleLeaderMap: State.RoleLeaderMap.SetItem(changed.Role, changed.Leader));
})
.With<ClusterEvent.CurrentInternalStats>(stats =>
{
Expand Down

0 comments on commit 8a6166f

Please sign in to comment.