aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting/mirror.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2022-01-20 18:46:10 +0100
committerGitHub <noreply@github.com>2022-01-20 18:46:10 +0100
commit54e9ee37a7a301dbe74d46fd3c87712e6120e9bf (patch)
tree1be12fb072625c1b896b9d72f7912b018aad502b /modules/setting/mirror.go
parent1d98d205f5825f40110e6628b61a97c91ac7f72d (diff)
downloadgitea-54e9ee37a7a301dbe74d46fd3c87712e6120e9bf.tar.gz
gitea-54e9ee37a7a301dbe74d46fd3c87712e6120e9bf.zip
format with gofumpt (#18184)
* gofumpt -w -l . * gofumpt -w -l -extra . * Add linter * manual fix * change make fmt
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`