mirror of
https://github.com/go-gitea/gitea
synced 2025-07-19 08:48:37 +00:00
format with gofumpt (#18184)
* gofumpt -w -l . * gofumpt -w -l -extra . * Add linter * manual fix * change make fmt
This commit is contained in:
@@ -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`
|
||||
|
Reference in New Issue
Block a user