Make sure client initializes to proper lock RPC path. (#3763)

Fixes a regression introduced in previous commit.
This commit is contained in:
Harshavardhana
2017-02-18 02:52:11 -08:00
committed by GitHub
parent 50b4e54a75
commit 34d9a6b46a
3 changed files with 4 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ type networkStorage struct {
}
const (
storageRPCPath = minioReservedBucketPath + "/storage"
storageRPCPath = "/storage"
)
// Converts rpc.ServerError to underlying error. This function is
@@ -102,7 +102,7 @@ func newStorageRPC(ep *url.URL) (StorageAPI, error) {
}
// Dial minio rpc storage http path.
rpcPath := path.Join(storageRPCPath, getPath(ep))
rpcPath := path.Join(minioReservedBucketPath, storageRPCPath, getPath(ep))
rpcAddr := ep.Host
serverCred := serverConfig.GetCredential()