EarthChen commented on issue #11447: URL: https://github.com/apache/dubbo/issues/11447#issuecomment-1420142609
```java CompletableFuture.completedFuture(kickOffDevice(request)); ``` 方法并不是给客户端使用的方法,客户端如果使用非 stub 方式,其实是使用 proxy 去发起 rpc 调用的,和 default 的方法无关,这个逻辑只是给服务端的一个默认方法,只是因为他的返回值是 future ,但核心在于,服务端的async 意义不是很大,该方法的逻辑,而且很多人并不需要这个方法,如果强制要求用户重写会很痛苦,所以默认逻辑是包装一下sync 的方法,当然你也可以重写 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
