diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2020-08-20 17:21:12 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2020-08-20 18:45:07 +0300 |
commit | ec8f8b27bca9471f67a64fec23eb1eb3b08ccde0 (patch) | |
tree | 3e843175e1ceab4c3813dacb63482f2e0f113eb9 /internal/domain/domain_test.go | |
parent | f56500fa8d30838e25383910cf0b120ce2be65da (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/domain/domain_test.go')
-rw-r--r-- | internal/domain/domain_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/domain/domain_test.go b/internal/domain/domain_test.go index 26a7735c..5fa5d792 100644 --- a/internal/domain/domain_test.go +++ b/internal/domain/domain_test.go @@ -23,7 +23,7 @@ type stubbedResolver struct { func (resolver *stubbedResolver) Resolve(*http.Request) (*serving.Request, error) { return &serving.Request{ - Serving: disk.New(), + Serving: disk.Instance(), LookupPath: resolver.project, SubPath: resolver.subpath, }, resolver.err |