go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

cannot be used ‘Redis redis.RedisConf’ in rpc

Open chemwol opened this issue 2 years ago • 2 comments
trafficstars

Describe the bug cannot be used ‘Redis redis.RedisConf’ in rpc

To Reproduce Steps to reproduce the behavior, if applicable:

  1. The code is

    type Config struct {
     zrpc.RpcServerConf
     Redis redis.RedisConf
    }
    
  2. The error is

    config file etc/queue.yaml, duplicated key host
    

Environments (please complete the following information):

  • OS: windows
  • go-zero version 1.5.0
  • goctl version 1.5.0

chemwol avatar Mar 11 '23 15:03 chemwol

If you use Redis like this, the config item will be used for both your Redis and Redis inside of zrpc.RpcServerConf. This is a potential bug that we've met.

kevwan avatar Mar 12 '23 07:03 kevwan

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Mar 22 '24 01:03 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jun 25 '24 01:06 github-actions[bot]