beiwei30 commented on issue #1140:
URL: https://github.com/apache/dubbo-go/issues/1140#issuecomment-816723133
针对 3 的进一步说明,比如:
```golang
func init() {
cat := new(CatService)
config.SetConsumerService(cat)
lion := new(LionService)
config.SetConsumerService(lion)
config.SetProviderService(&AmericanService{
cat: cat,
lion: lion,
})
}
```
既然在配置里已经配置了,那么就不应该在代码中还需要装配。
同时,针对 consumer 和 provider 需要单独在各自的配置文件中配置,对于大部分服务化应用来说,很不友好,因为大部分应用既是
provider 也是 consumer
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]