go-zero
go-zero copied to clipboard
cannot be used ‘Redis redis.RedisConf’ in rpc
trafficstars
Describe the bug cannot be used ‘Redis redis.RedisConf’ in rpc
To Reproduce Steps to reproduce the behavior, if applicable:
-
The code is
type Config struct { zrpc.RpcServerConf Redis redis.RedisConf } -
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
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.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.