mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 14:10:25 +03:00
rpc: Add RPC client tests. (#2858)
This commit is contained in:
+4
-3
@@ -84,11 +84,12 @@ func configureServerHandler(srvCmdConfig serverCmdConfig) http.Handler {
|
||||
// Initialize router.
|
||||
mux := router.NewRouter()
|
||||
|
||||
// Register storage rpc router.
|
||||
registerStorageRPCRouters(mux, srvCmdConfig)
|
||||
|
||||
// Initialize distributed NS lock.
|
||||
if isDistributedSetup(srvCmdConfig.disks) {
|
||||
// Register storage rpc router only if its a distributed setup.
|
||||
registerStorageRPCRouters(mux, srvCmdConfig)
|
||||
|
||||
// Register distributed namespace lock.
|
||||
registerDistNSLockRouter(mux, srvCmdConfig)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user