Skip to content

Commit

Permalink
fix init.go
Browse files Browse the repository at this point in the history
  • Loading branch information
KunLee76 committed Jun 12, 2024
1 parent 1fe3a69 commit a6f2da1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/sbi/api_accesstoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ import (
"github.com/free5gc/openapi/models"
)

// Index is the index handler.
func Index(c *gin.Context) {
c.String(http.StatusOK, "StatusOK")
}

func (s *Server) getAccessTokenRoutes() []Route {
return []Route{
{
Expand Down
6 changes: 6 additions & 0 deletions pkg/service/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,18 @@ func NewApp(ctx context.Context, cfg *factory.Config, tlsKeyLogPath string) (*Nr
nrf.SetLogEnable(cfg.GetLogEnable())
nrf.SetLogLevel(cfg.GetLogLevel())
nrf.SetReportCaller(cfg.GetLogReportCaller())

err1 := nrf_context.InitNrfContext()
if err1 != nil {
return nrf, err1
}
p, err := processor.NewProcessor(nrf)
if err != nil {
return nrf, err
}
nrf.processor = p

nrf.ctx, nrf.cancel = context.WithCancel(ctx)
nrf.nrfCtx = nrf_context.GetSelf()
if nrf.sbiServer, err = sbi.NewServer(nrf, tlsKeyLogPath); err != nil {
return nil, err
Expand Down

0 comments on commit a6f2da1

Please sign in to comment.