Skip to content

Commit b059136

Browse files
committed
fix: add debug flag and fix storage initialization
1 parent 59b15f5 commit b059136

File tree

3 files changed

+303
-296
lines changed

3 files changed

+303
-296
lines changed

config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ type Config struct {
1515
CompressFormat string
1616
CompressLevel int
1717
BackupName string
18+
Debug bool
1819
}

dumper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func NewDumper(config *Config) (*Dumper, error) {
2020

2121
switch config.StorageType {
2222
case "file":
23-
s, err = storage.NewFileStorage(config.StorageConfig["path"], config.Debug)
23+
s, err = storage.NewFileStorage(config.StorageConfig["path"])
2424
case "s3":
2525
s, err = storage.NewS3Storage(
2626
config.StorageConfig["bucket"],

0 commit comments

Comments
 (0)