mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 05:00:22 +03:00
Layered rpc-client implementation (#2512)
This commit is contained in:
committed by
Harshavardhana
parent
7e3e24b394
commit
bda6bcd5be
@@ -56,8 +56,12 @@ func initDsyncNodes(disks []string, port int) (bool, error) {
|
||||
}
|
||||
// Initialize rpc lock client information only if this instance is a
|
||||
// distributed setup.
|
||||
clnts := make([]dsync.RPC, len(disks))
|
||||
for i := 0; i < len(disks); i++ {
|
||||
clnts[i] = newAuthClient(dsyncNodes[i], rpcPaths[i], serverConfig.GetCredential(), "Dsync.LoginHandler")
|
||||
}
|
||||
if isDist {
|
||||
return isDist, dsync.SetNodesWithPath(dsyncNodes, rpcPaths)
|
||||
return isDist, dsync.SetNodesWithClients(clnts)
|
||||
}
|
||||
return isDist, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user