XnLemon commented on PR #3687:
URL: https://github.com/apache/dubbo-go/pull/3687#issuecomment-5693315234

   > > > Instance YAML 的格式需要明确一下
   > > > 当前实现的规则是:
   > > > ```yaml
   > > > dubbo:
   > > >   extensions:
   > > >     hystrix:
   > > >       enabled: true
   > > > ```
   > > > 
   > > > 
   > > >     
   > > >       
   > > >     
   > > > 
   > > >       
   > > >     
   > > > 
   > > >     
   > > >   
   > > > 会作为 Instance 配置。
   > > > 而:
   > > > ```yaml
   > > > dubbo:
   > > >   extensions:
   > > >     hystrix:
   > > >       consumer:
   > > >         ...
   > > >       provider:
   > > >         ...
   > > > ```
   > > > 
   > > > 
   > > >     
   > > >       
   > > >     
   > > > 
   > > >       
   > > >     
   > > > 
   > > >     
   > > >   
   > > > 会根据 client/server 分别选择对应分支。
   > > > 改成这种是不是好一些:
   > > > ```yaml
   > > > dubbo:
   > > >   extensions:
   > > >     hystrix:
   > > >       instance:
   > > >         ...
   > > > ```
   > > 
   > > 
   > > changed style like
   > > ```yaml
   > > dubbo:
   > >  extensions:
   > >    my-extension:
   > >      instance:
   > >        consumer:
   > >          some-instance-setting: foo
   > >        provider:
   > >          another-instance-setting: bar
   > >      consumer:
   > >        client-setting: baz
   > >      provider:
   > >        server-setting: qux
   > > ```
   > 
   > 如果像这个例子这样 同时出现 instance consumer provider 会出现冲突吗
   
   no 只根据扩展配置最外层的键选择分支
    instance to Instance 配置
    consumer to Client 配置
    provider to Server 配置


-- 
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]

Reply via email to