Skip to content

Commit d61714c

Browse files
storage/minio: save pointer to conifg
1 parent 2fbf9b2 commit d61714c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/storage/minio.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ type MinioStorage struct {
6060
client *minio.Client
6161
bucket string
6262
basePath string
63+
config *MinioStorageConfig
6364
}
6465

6566
func convertMinioErr(err error) error {
@@ -115,6 +116,7 @@ func NewMinioStorage(ctx context.Context, cfg interface{}) (ObjectStorage, error
115116
client: minioClient,
116117
bucket: config.Bucket,
117118
basePath: config.BasePath,
119+
config: &config,
118120
}, nil
119121
}
120122

0 commit comments

Comments
 (0)