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:
authorJaime Martinez <jmartinez@gitlab.com>2021-07-07 10:03:54 +0300
committerJaime Martinez <jmartinez@gitlab.com>2021-07-07 10:03:54 +0300
commitc81339af0bd218ccb956f53d0f7bbabef835a5a4 (patch)
tree8ea2b81a4987cd442943657ff969473496bacb09 /internal/source/disk
parent86afc1dfeeb07fbc140d08ef8cdcfd8cbd4d7bcb (diff)
Add correlation_id to outbound requests
Diffstat (limited to 'internal/source/disk')
-rw-r--r--internal/source/disk/disk.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/source/disk/disk.go b/internal/source/disk/disk.go
index 272d6c4e..3596af29 100644
--- a/internal/source/disk/disk.go
+++ b/internal/source/disk/disk.go
@@ -1,6 +1,7 @@
package disk
import (
+ "context"
"strings"
"sync"
"time"
@@ -25,7 +26,7 @@ func New() *Disk {
}
// GetDomain returns a domain from the domains map if it exists
-func (d *Disk) GetDomain(host string) (*domain.Domain, error) {
+func (d *Disk) GetDomain(ctx context.Context, host string) (*domain.Domain, error) {
host = strings.ToLower(host)
d.lock.RLock()