Browse Source

Improved Storage module to support fs and minio.

master v0.7.5
Mingcai SHEN 5 years ago
parent
commit
c496450b97
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      storage/minio.go

+ 2
- 2
storage/minio.go View File

@ -95,8 +95,8 @@ func NewMinio(cfg config.Config) (Storage, error) {
mio.secret = opts.Secret
mio.secure = opts.Secure
}
if s := cfg.GetString("root"); s == "" {
return nil, fmt.Errorf("root can not be empty")
if s := cfg.GetString("bucket"); s == "" {
return nil, fmt.Errorf("bucket can not be empty")
} else {
mio.bucket = s
}

Loading…
Cancel
Save