Skip to content

Commit

Permalink
fix: can't compare uris directly, convert to string
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicGD committed Jan 29, 2024
1 parent eae4ae5 commit dea2e8d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ await consulClientProvider.Client.Catalog.Service(serviceName, "grpc",

var serviceUrls = services.Select(service => new Uri(
$"{(Options.EnableHttp2UnencryptedSupport ? "http" : "https")}://{service.ServiceAddress}:{service.ServicePort}"))
.OrderBy(uri => uri).ToList();
.OrderBy(uri => uri.ToString(), StringComparer.OrdinalIgnoreCase).ToList();

if (serviceUrls.SequenceEqual(target))
{
Expand Down

0 comments on commit dea2e8d

Please sign in to comment.