server-mux: Simplify graceful shutdown behavior (#3681)

`*http.Server` is no more used, doing some cleanup.
This commit is contained in:
Anis Elleuch
2017-02-04 07:53:30 +01:00
committed by Harshavardhana
parent ed4fcb63f7
commit b6ebf2aba8
5 changed files with 105 additions and 169 deletions

View File

@@ -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