Bumping versions

This commit is contained in:
buildmaster
2024-09-02 20:02:41 +00:00
parent 78d884c50d
commit a7995a49ad
2 changed files with 4 additions and 6 deletions

View File

@@ -54,9 +54,8 @@ public class RandomLoadBalancer implements ReactorServiceInstanceLoadBalancer {
public RandomLoadBalancer(ObjectProvider<ServiceInstanceListSupplier> serviceInstanceListSupplierProvider,
String serviceId) {
this.serviceId = serviceId;
this.serviceInstanceListSingletonSupplier = SingletonSupplier.of(
() -> serviceInstanceListSupplierProvider.getIfAvailable(NoopServiceInstanceListSupplier::new)
);
this.serviceInstanceListSingletonSupplier = SingletonSupplier
.of(() -> serviceInstanceListSupplierProvider.getIfAvailable(NoopServiceInstanceListSupplier::new));
}
@SuppressWarnings("rawtypes")

View File

@@ -69,9 +69,8 @@ public class RoundRobinLoadBalancer implements ReactorServiceInstanceLoadBalance
public RoundRobinLoadBalancer(ObjectProvider<ServiceInstanceListSupplier> serviceInstanceListSupplierProvider,
String serviceId, int seedPosition) {
this.serviceId = serviceId;
this.serviceInstanceListSingletonSupplier = SingletonSupplier.of(
() -> serviceInstanceListSupplierProvider.getIfAvailable(NoopServiceInstanceListSupplier::new)
);
this.serviceInstanceListSingletonSupplier = SingletonSupplier
.of(() -> serviceInstanceListSupplierProvider.getIfAvailable(NoopServiceInstanceListSupplier::new));
this.position = new AtomicInteger(seedPosition);
}