mirror of
https://gitea.com/gitea/act_runner.git
synced 2024-12-30 12:57:09 +01:00
fix lint error (#30)
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/30 Reviewed-by: John Olheiser <john+gitea@jolheiser.com>
This commit is contained in:
parent
436b441cad
commit
ebdbfeb54a
@ -29,9 +29,7 @@ const (
|
|||||||
urlBase = "/_apis/artifactcache"
|
urlBase = "/_apis/artifactcache"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var logger = log.StandardLogger().WithField("module", "cache_request")
|
||||||
logger = log.StandardLogger().WithField("module", "cache_request")
|
|
||||||
)
|
|
||||||
|
|
||||||
type Handler struct {
|
type Handler struct {
|
||||||
engine engine
|
engine engine
|
||||||
@ -104,7 +102,7 @@ func NewHandler() (*Handler, error) {
|
|||||||
}
|
}
|
||||||
go func() {
|
go func() {
|
||||||
if err := http.Serve(listener, h.router); err != nil {
|
if err := http.Serve(listener, h.router); err != nil {
|
||||||
logger.Error("http serve: %v", err)
|
logger.Errorf("http serve: %v", err)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
h.listener = listener
|
h.listener = listener
|
||||||
|
Loading…
Reference in New Issue
Block a user