Used json_rpc path.

This commit is contained in:
Jianping Wu 2019-03-15 20:58:57 -07:00
parent f579a2bd10
commit 182d3ab146

View File

@ -54,8 +54,7 @@ type JSONRpcResp struct {
}
func NewRPCClient(cfg *pool.Upstream) (*RPCClient, error) {
//rawUrl := fmt.Sprintf("http://%s:%v/json_rpc", cfg.Host, cfg.Port)
rawUrl := fmt.Sprintf("http://%s:%v", cfg.Host, cfg.Port)
rawUrl := fmt.Sprintf("http://%s:%v/json_rpc", cfg.Host, cfg.Port)
url, err := url.Parse(rawUrl)
if err != nil {
return nil, err