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:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-09-25 13:44:30 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-09-25 13:44:30 +0300
commit48ca1a7f90b4aea979d91c27fcc7861169d8028c (patch)
treea41c2d0ddc6b1797ba0d3b74c9759de420094fc9 /internal/source/domains.go
parent4bcff3f158475aaeed66714376fafdd101367b46 (diff)
Rename groups package to disk package
Diffstat (limited to 'internal/source/domains.go')
-rw-r--r--internal/source/domains.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/source/domains.go b/internal/source/domains.go
index 5e7f113c..54a269d8 100644
--- a/internal/source/domains.go
+++ b/internal/source/domains.go
@@ -6,13 +6,13 @@ import (
"time"
"gitlab.com/gitlab-org/gitlab-pages/internal/domain"
- "gitlab.com/gitlab-org/gitlab-pages/internal/source/groups"
+ "gitlab.com/gitlab-org/gitlab-pages/internal/source/disk"
)
// Domains struct represents a map of all domains supported by pages. It is
// currently reading them from disk.
type Domains struct {
- dm groups.Map
+ dm disk.Map
lock sync.RWMutex
}
@@ -45,10 +45,10 @@ func (d *Domains) Ready() bool {
// Watch starts the domain source, in this case it is reading domains from
// groups on disk concurrently
func (d *Domains) Watch(rootDomain string) {
- go groups.Watch(rootDomain, d.updateDomains, time.Second)
+ go disk.Watch(rootDomain, d.updateDomains, time.Second)
}
-func (d *Domains) updateDomains(dm groups.Map) {
+func (d *Domains) updateDomains(dm disk.Map) {
d.lock.Lock()
defer d.lock.Unlock()