From 0fe1b0c3a82b5bc7184253a71d12bc1a99f2f976 Mon Sep 17 00:00:00 2001 From: Alexander Zavorotynskiy Date: Fri, 27 May 2022 10:22:19 +0200 Subject: [PATCH] fix(backend/storage): fixed panic in storage service --- backend/internal/storage/storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/internal/storage/storage.go b/backend/internal/storage/storage.go index 88bb7ad5f..8a01ad6fc 100644 --- a/backend/internal/storage/storage.go +++ b/backend/internal/storage/storage.go @@ -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) {