mirror of
https://github.com/minio/minio.git
synced 2025-11-20 01:50:24 -05:00
handlers: Avoid initializing a struct in each handler call (#11217)
This commit is contained in:
@@ -271,7 +271,7 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
|
||||
registerAPIRouter(router)
|
||||
|
||||
// Use all the middlewares
|
||||
router.Use(registerMiddlewares)
|
||||
router.Use(globalHandlers...)
|
||||
|
||||
var getCert certs.GetCertificateFunc
|
||||
if globalTLSCerts != nil {
|
||||
|
||||
Reference in New Issue
Block a user