Remove globalQuiet and globalConfigDir global variables (#3830)

This commit is contained in:
Bala FA
2017-03-03 03:51:30 +05:30
committed by Harshavardhana
parent 208dd15245
commit 98d17d2a97
18 changed files with 178 additions and 364 deletions

View File

@@ -440,7 +440,7 @@ func StartTestPeersRPCServer(t TestErrHandler, instanceType string) TestServer {
// Sets the global config path to empty string.
func resetGlobalConfigPath() {
setGlobalConfigPath("")
setConfigDir("")
}
// sets globalObjectAPI to `nil`.
@@ -519,7 +519,7 @@ func newTestConfig(bucketLocation string) (rootPath string, err error) {
}
// Do this only once here.
setGlobalConfigPath(rootPath)
setConfigDir(rootPath)
// Initialize server config.
if err = newConfig(envParams{}); err != nil {