diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2021-07-07 10:03:54 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2021-07-07 10:03:54 +0300 |
commit | c81339af0bd218ccb956f53d0f7bbabef835a5a4 (patch) | |
tree | 8ea2b81a4987cd442943657ff969473496bacb09 /internal/source/disk | |
parent | 86afc1dfeeb07fbc140d08ef8cdcfd8cbd4d7bcb (diff) |
Add correlation_id to outbound requests
Diffstat (limited to 'internal/source/disk')
-rw-r--r-- | internal/source/disk/disk.go | 3 |
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() |