diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2020-09-21 09:01:18 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2020-09-24 03:22:45 +0300 |
commit | a451e2b0683d46e2ce2d7a92181eb4379dddf866 (patch) | |
tree | 5548742c7f69b93eaef9ac1d56b02cdb5cc30201 /internal/serving/disk/zip | |
parent | 27adbbac6de8473a78b39799cef2d8873beef91a (diff) |
Add Name to the VFS interface to use with metrics
Diffstat (limited to 'internal/serving/disk/zip')
-rw-r--r-- | internal/serving/disk/zip/serving.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/serving/disk/zip/serving.go b/internal/serving/disk/zip/serving.go index 42cc8f0c..63578379 100644 --- a/internal/serving/disk/zip/serving.go +++ b/internal/serving/disk/zip/serving.go @@ -8,7 +8,7 @@ import ( "gitlab.com/gitlab-org/gitlab-pages/metrics" ) -var instance = disk.New(vfs.Instrumented(zip.New(), "zip"), metrics.ZipServingFileSize) +var instance = disk.New(vfs.Instrumented(zip.New("zip")), metrics.VFSServingFileSize) // Instance returns a serving instance that is capable of reading files // from a zip archives opened from a URL, most likely stored in object storage |