diff --git a/cmd/dump.go b/cmd/dump.go index cb6f3f43f0b..027f251a0cd 100644 --- a/cmd/dump.go +++ b/cmd/dump.go @@ -12,9 +12,9 @@ import ( "path" "time" - "github.com/Unknwon/cae/zip" "code.gitea.io/gitea/models" "code.gitea.io/gitea/modules/setting" + "github.com/Unknwon/cae/zip" "github.com/urfave/cli" ) diff --git a/cmd/serve.go b/cmd/serve.go index 1833a01858f..2578b26dfd0 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -13,13 +13,13 @@ import ( "strings" "time" - "github.com/Unknwon/com" "code.gitea.io/git" "code.gitea.io/gitea/models" "code.gitea.io/gitea/modules/base" "code.gitea.io/gitea/modules/httplib" "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/setting" + "github.com/Unknwon/com" gouuid "github.com/satori/go.uuid" "github.com/urfave/cli" ) diff --git a/cmd/web.go b/cmd/web.go index 8cd3949be19..3d0c9777986 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -184,7 +184,7 @@ func newMacaron() *macaron.Macaron { })) m.Use(toolbox.Toolboxer(m, toolbox.Options{ HealthCheckFuncs: []*toolbox.HealthCheckFuncDesc{ - &toolbox.HealthCheckFuncDesc{ + { Desc: "Database connection", Func: models.Ping, },