mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Merge pull request #95 from harshavardhana/pr_out_getstoragetype_should_return_valid_results
This commit is contained in:
commit
e3378ee448
8
main.go
8
main.go
@ -61,14 +61,14 @@ func main() {
|
||||
func getStorageType(input string) server.StorageType {
|
||||
switch {
|
||||
case input == "file":
|
||||
return server.InMemoryStorage
|
||||
return server.FileStorage
|
||||
case input == "inmemory":
|
||||
return server.InMemoryStorage
|
||||
default:
|
||||
{
|
||||
log.Fatal("Unknown server type:", input)
|
||||
// needed for compile, should never return after fatal log msg
|
||||
return server.InMemoryStorage
|
||||
log.Println("Unknown storage type:", input)
|
||||
log.Println("Choosing default storage type as 'file'..")
|
||||
return server.FileStorage
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user