From 48ca1a7f90b4aea979d91c27fcc7861169d8028c Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Wed, 25 Sep 2019 12:44:30 +0200 Subject: Rename groups package to disk package --- internal/source/domains.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/source/domains.go') 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() -- cgit v1.2.3