mirror of
https://github.com/minio/minio.git
synced 2025-11-20 01:50:24 -05:00
server-mux: Simplify graceful shutdown behavior (#3681)
`*http.Server` is no more used, doing some cleanup.
This commit is contained in:
committed by
Harshavardhana
parent
ed4fcb63f7
commit
b6ebf2aba8
@@ -449,8 +449,8 @@ func serverMain(c *cli.Context) {
|
||||
initGlobalAdminPeers(endpoints)
|
||||
|
||||
// Determine API endpoints where we are going to serve the S3 API from.
|
||||
apiEndPoints, err := finalizeAPIEndpoints(apiServer.Server)
|
||||
fatalIf(err, "Unable to finalize API endpoints for %s", apiServer.Server.Addr)
|
||||
apiEndPoints, err := finalizeAPIEndpoints(apiServer.Addr)
|
||||
fatalIf(err, "Unable to finalize API endpoints for %s", apiServer.Addr)
|
||||
|
||||
// Set the global API endpoints value.
|
||||
globalAPIEndpoints = apiEndPoints
|
||||
|
||||
Reference in New Issue
Block a user