Skip to content

Commit aef63d1

Browse files
princeparmarPradip Parmar
andauthored
skip minio setup if minio.start is false in config. (#564)
Signed-off-by: Pradip Parmar <[email protected]> Co-authored-by: Pradip Parmar <[email protected]>
1 parent 03d61ae commit aef63d1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

code/go/0chain.net/blobber/minio.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,19 @@ import (
55
"fmt"
66
"os"
77

8+
"github.com/0chain/blobber/code/go/0chain.net/blobbercore/config"
89
"github.com/0chain/blobber/code/go/0chain.net/blobbercore/filestore"
910
"github.com/0chain/blobber/code/go/0chain.net/core/common"
1011
)
1112

1213
func setupMinio() error {
1314
fmt.Print("[4/12] setup minio")
15+
16+
if config.Configuration.MinioStart {
17+
fmt.Print(" + No minio [SKIP]\n")
18+
return nil
19+
}
20+
1421
reader, err := os.Open(minioFile)
1522
if err != nil {
1623
return err

0 commit comments

Comments
 (0)