mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-28 12:00:01 +02:00
format with gofumpt (#18184)
* gofumpt -w -l . * gofumpt -w -l -extra . * Add linter * manual fix * change make fmt
This commit is contained in:
parent
1d98d205f5
commit
54e9ee37a7
423 changed files with 1585 additions and 1758 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue