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:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2021-10-29 23:54:04 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2021-10-29 23:54:04 +0300
commit8c051f99dd86ad424b7e3c28ca82297847c4e08c (patch)
tree9dbf96ea70579eb9e477a76e3784753e3b33b6b8 /internal
parenta883bfe7fd1fd4f818128fd6cd80ea1572d5fa2e (diff)
refactor: remove client field from cache struct
Diffstat (limited to 'internal')
-rw-r--r--internal/source/gitlab/cache/cache.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/internal/source/gitlab/cache/cache.go b/internal/source/gitlab/cache/cache.go
index d569b81b..c33765f5 100644
--- a/internal/source/gitlab/cache/cache.go
+++ b/internal/source/gitlab/cache/cache.go
@@ -11,7 +11,6 @@ import (
// Cache is a short and long caching mechanism for GitLab source
type Cache struct {
- client api.Client
store Store
retriever *Retriever
}
@@ -20,7 +19,6 @@ type Cache struct {
func NewCache(client api.Client, cc *config.Cache) *Cache {
r := NewRetriever(client, cc.RetrievalTimeout, cc.MaxRetrievalInterval, cc.MaxRetrievalRetries)
return &Cache{
- client: client,
store: newMemStore(client, cc),
retriever: r,
}