mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05:00
Fix web handler initialize with distributed lazy init.
This commit is contained in:
@@ -934,7 +934,7 @@ func initTestAPIEndPoints(objLayer ObjectLayer, apiFunctions []string) http.Hand
|
||||
func initTestWebRPCEndPoint(objLayer ObjectLayer) http.Handler {
|
||||
// Initialize Web.
|
||||
webHandlers := &webAPIHandlers{
|
||||
ObjectAPI: objLayer,
|
||||
ObjectAPI: func() ObjectLayer { return objLayer },
|
||||
}
|
||||
|
||||
// Initialize router.
|
||||
|
||||
Reference in New Issue
Block a user