fix(backend/storage): fixed panic in storage service
This commit is contained in:
parent
3a2b54a446
commit
0fe1b0c3a8
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ func New(cfg *config.Config, s3 *storage.S3) (*Storage, error) {
|
|||
case s3 == nil:
|
||||
return nil, fmt.Errorf("s3 storage is empty")
|
||||
}
|
||||
return &Storage{s3: s3}, nil
|
||||
return &Storage{cfg: cfg, s3: s3}, nil
|
||||
}
|
||||
|
||||
func (s *Storage) UploadKey(key string, retryCount int) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue