aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting/mirror.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/setting/mirror.go')
-rw-r--r--modules/setting/mirror.go30
1 files changed, 14 insertions, 16 deletions
diff --git a/modules/setting/mirror.go b/modules/setting/mirror.go
index e49393e39c..2bd0322d06 100644
--- a/modules/setting/mirror.go
+++ b/modules/setting/mirror.go
@@ -10,22 +10,20 @@ import (
"code.gitea.io/gitea/modules/log"
)
-var (
- // Mirror settings
- Mirror = struct {
- Enabled bool
- DisableNewPull bool
- DisableNewPush bool
- DefaultInterval time.Duration
- MinInterval time.Duration
- }{
- Enabled: true,
- DisableNewPull: false,
- DisableNewPush: false,
- MinInterval: 10 * time.Minute,
- DefaultInterval: 8 * time.Hour,
- }
-)
+// Mirror settings
+var Mirror = struct {
+ Enabled bool
+ DisableNewPull bool
+ DisableNewPush bool
+ DefaultInterval time.Duration
+ MinInterval time.Duration
+}{
+ Enabled: true,
+ DisableNewPull: false,
+ DisableNewPush: false,
+ MinInterval: 10 * time.Minute,
+ DefaultInterval: 8 * time.Hour,
+}
func newMirror() {
// Handle old configuration through `[repository]` `DISABLE_MIRRORS`