Skip to content

Conversation

Kahbazi
Copy link
Member

@Kahbazi Kahbazi commented Jul 26, 2021

No description provided.

@@ -22,7 +22,7 @@ internal sealed class RoundRobinLoadBalancingPolicy : ILoadBalancingPolicy
return null;
}

var counter = _counters.GetOrCreateValue(context.GetClusterState());
Copy link
Member

@Tratcher Tratcher Jul 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this was the last call to GetClusterState. Can you remove that API as well?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@Tratcher Tratcher merged commit 34fe013 into dotnet:main Jul 26, 2021
@Tratcher
Copy link
Member

Thanks

@Tratcher Tratcher added this to the YARP RC1 milestone Jul 26, 2021
@Kahbazi Kahbazi deleted the kahbazi/loadBalance branch July 26, 2021 20:56
@Kahbazi
Copy link
Member Author

Kahbazi commented Jul 26, 2021

@Tratcher Does this PR need the breaking-change label?

@Tratcher
Copy link
Member

I guess that was a public API we removed 😁. Applied.

@franklixuefei
Copy link

franklixuefei commented Nov 29, 2021

We were calling context.GetClusterState(). What should we call now?

Update:
context.GetRouteModel().Cluster;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants