Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wy65701436 committed May 20, 2024
1 parent d23a0b4 commit 809ecae
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/jobservice/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ import (
"errors"
"flag"
"fmt"
"github.com/goharbor/harbor/src/lib/log"
"net/http"
_ "net/http/pprof"

"github.com/goharbor/harbor/src/common"
"github.com/goharbor/harbor/src/jobservice/common/utils"
Expand All @@ -41,6 +44,10 @@ import (
)

func main() {
go func() {
log.Info(http.ListenAndServe("0.0.0.0:7070", nil))
}()

cfgLib.DefaultCfgManager = common.RestCfgManager
if err := cfgLib.DefaultMgr().Load(context.Background()); err != nil {
panic(fmt.Sprintf("failed to load configuration, error: %v", err))
Expand Down

0 comments on commit 809ecae

Please sign in to comment.