We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if strings.Contains(strFp, "Slave") && strings.Contains(strFp, "Master") { err = json.Unmarshal(fp, dbConfCluster) } else { //err = json.Unmarshal([]byte(fp), &conf.Master) err = jsonDecoder(fp, dbConfCluster) //即使配置文件设置的单一服务器配置,也会通过反射解析集群配置报错 }
建议要么定死配置文件格式,将slave留空,要么这里的代码改成单一配置的interface。
The text was updated successfully, but these errors were encountered:
这里的集群是为了兼容, 最后执行的时候, 会优先做判定, 单个配置, 会自动转换成集群配置, 单个配置也是集群的一种, 只不过是只有一个服务而已, 并不冲突
Sorry, something went wrong.
No branches or pull requests
建议要么定死配置文件格式,将slave留空,要么这里的代码改成单一配置的interface。
The text was updated successfully, but these errors were encountered: