-
Notifications
You must be signed in to change notification settings - Fork 689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ReactiveDiscoveryClient probe() method default implementation #1105
Comments
Hi @trajano, thanks for reporting it. This is right, however, it's actually done on purpose. The assumption is that the concrete implementations should override it, for example: https://github.com/spring-cloud/spring-cloud-consul/blob/main/spring-cloud-consul-discovery/src/main/java/org/springframework/cloud/consul/discovery/ConsulDiscoveryClient.java#L104 . |
The |
Right, that was probably not the best example. There are implementations of |
Okay but if something like https://github.com/spring-cloud/spring-cloud-commons/blob/main/spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/simple/reactive/SimpleReactiveDiscoveryClient.java did implement it with the current signature, what would it mean? Because it's return value is not a |
Thanks, @trajano - that's right. Makes sense. Will mark it as a bug. |
That change would likely trigger a lot of problems especially for those that made custom implementations already.
|
Describe the bug
the
.probe
method is defined asand
getServices()
also returns a Flux, since Flux don't do anything without a subscribe this is practically a no-opPerhaps the interface should be defined as returning
Mono<Void>
as inThe text was updated successfully, but these errors were encountered: