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>2020-07-15 10:47:50 +0300
committerJaime Martinez <jmartinez@gitlab.com>2020-07-24 07:49:29 +0300
commit8ae49b3597e2ceaebfe4da66b555db4293a2e00c (patch)
tree92743acd8dbfa8db149d4b22c8f8f41552acc056 /internal/source/gitlab/cache/cache.go
parent11eaa4f759a746ee621f85362bae0512cb96497a (diff)
Enable polling in the source domains
Enables gitlabClient.Poll in the domain source init.
Diffstat (limited to 'internal/source/gitlab/cache/cache.go')
-rw-r--r--internal/source/gitlab/cache/cache.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/source/gitlab/cache/cache.go b/internal/source/gitlab/cache/cache.go
index c8d166b5..de91e8b6 100644
--- a/internal/source/gitlab/cache/cache.go
+++ b/internal/source/gitlab/cache/cache.go
@@ -109,3 +109,7 @@ func (c *Cache) Resolve(ctx context.Context, domain string) *api.Lookup {
metrics.DomainsSourceCacheMiss.Inc()
return entry.Retrieve(ctx, c.client)
}
+
+func (c *Cache) Poll(retries int, interval time.Duration, errCh chan error) {
+ c.client.Poll(retries, interval, errCh)
+}