Use context.Background() instead of nil

Rename Context[Get|Set] -> [Get|Set]Context
This commit is contained in:
Krishna Srinivas
2018-03-15 13:27:16 -07:00
committed by kannappanr
parent 33fe42df8a
commit 9ede179a21
45 changed files with 431 additions and 468 deletions

View File

@@ -17,6 +17,7 @@
package cmd
import (
"context"
"os"
)
@@ -46,7 +47,7 @@ func handleSignals() {
errorIf(err, "Unable to shutdown http server")
if objAPI := newObjectLayerFn(); objAPI != nil {
oerr = objAPI.Shutdown(nil)
oerr = objAPI.Shutdown(context.Background())
errorIf(oerr, "Unable to shutdown object layer")
}
@@ -59,7 +60,7 @@ func handleSignals() {
errorIf(err, "http server exited abnormally")
var oerr error
if objAPI := newObjectLayerFn(); objAPI != nil {
oerr = objAPI.Shutdown(nil)
oerr = objAPI.Shutdown(context.Background())
errorIf(oerr, "Unable to shutdown object layer")
}