Update loadbalancing.md (#29468)

pull/29479/head
James Newton-King 2023-06-09 06:07:01 +08:00 committed by GitHub
parent 860c509558
commit 777287259a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -230,7 +230,7 @@ public class FileResolver : PollingResolver
private readonly Uri _address;
private readonly int _port;
public ExampleResolver(Uri address, int defaultPort, ILoggerFactory loggerFactory)
public FileResolver(Uri address, int defaultPort, ILoggerFactory loggerFactory)
: base(loggerFactory)
{
_address = address;
@ -319,7 +319,7 @@ public class RandomBalancerFactory : LoadBalancerFactory
// Create a RandomBalancer when the name is 'random'.
public override string Name => "random";
public override LoadBalancer Create(LoadBalancerOptions option)
public override LoadBalancer Create(LoadBalancerOptions options)
{
return new RandomBalancer(options.Controller, options.LoggerFactory);
}