Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2020-08-20 17:21:12 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2020-08-20 18:45:07 +0300
commitec8f8b27bca9471f67a64fec23eb1eb3b08ccde0 (patch)
tree3e843175e1ceab4c3813dacb63482f2e0f113eb9 /internal/source/gitlab
parentf56500fa8d30838e25383910cf0b120ce2be65da (diff)
Rename `serving/disk/New()` to `serving/disk/Instance()`rename-disk-new-to-instance
The `Instance()` is a correct name for this, as we do not allocate a `Disk` each time, rather return a singleton object.
Diffstat (limited to 'internal/source/gitlab')
-rw-r--r--internal/source/gitlab/factory.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/source/gitlab/factory.go b/internal/source/gitlab/factory.go
index d526994f..b10dee37 100644
--- a/internal/source/gitlab/factory.go
+++ b/internal/source/gitlab/factory.go
@@ -31,7 +31,7 @@ func fabricateServing(lookup api.LookupPath) serving.Serving {
switch source.Type {
case "file":
- return disk.New()
+ return disk.Instance()
case "serverless":
serving, err := serverless.NewFromAPISource(source.Serverless)
if err != nil {
@@ -47,5 +47,5 @@ func fabricateServing(lookup api.LookupPath) serving.Serving {
}
func defaultServing() serving.Serving {
- return disk.New()
+ return disk.Instance()
}