fix(backend/storage): fixed panic in storage service

This commit is contained in:
Alexander Zavorotynskiy 2022-05-27 10:22:19 +02:00
parent 3a2b54a446
commit 0fe1b0c3a8

View file

@ -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) {