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-27 04:28:06 +0300
committerJaime Martinez <jmartinez@gitlab.com>2020-08-04 09:44:10 +0300
commit1350a433466a309883b2c67ea5f40bc94cee8382 (patch)
treeec67166ed68765b487f6bf17f9d463160eb22eb4
parent3c58f5f641c8f8dd51358fd812cffeb6491e75cc (diff)
-rw-r--r--internal/source/domains.go3
-rw-r--r--internal/source/domains_test.go2
2 files changed, 0 insertions, 5 deletions
diff --git a/internal/source/domains.go b/internal/source/domains.go
index 09007c85..ca2a8b6e 100644
--- a/internal/source/domains.go
+++ b/internal/source/domains.go
@@ -3,7 +3,6 @@ package source
import (
"errors"
"regexp"
- "sync"
"time"
log "github.com/sirupsen/logrus"
@@ -34,7 +33,6 @@ func init() {
// currently using two sources during the transition to the new GitLab domains
// source.
type Domains struct {
- mu *sync.RWMutex
gitlab Source
disk *disk.Disk // legacy disk source
}
@@ -47,7 +45,6 @@ func NewDomains(config Config) (*Domains, error) {
// https://gitlab.com/gitlab-org/gitlab/-/issues/217912
domains := &Domains{
- mu: &sync.RWMutex{},
disk: disk.New(),
}
diff --git a/internal/source/domains_test.go b/internal/source/domains_test.go
index 12c3220a..2382e756 100644
--- a/internal/source/domains_test.go
+++ b/internal/source/domains_test.go
@@ -2,7 +2,6 @@ package source
import (
"math/rand"
- "sync"
"testing"
"time"
@@ -212,7 +211,6 @@ func newTestDomains(t *testing.T, gitlabSource *MockSource) *Domains {
t.Helper()
return &Domains{
- mu: &sync.RWMutex{},
disk: disk.New(),
gitlab: gitlabSource,
}