Skip to content

Commit

Permalink
fix: lint error and miss nftype in searchnf
Browse files Browse the repository at this point in the history
  • Loading branch information
donald1218 committed Oct 17, 2024
1 parent 61c5fdc commit d6ec27e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions internal/sbi/consumer/nrf_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ func (s *nnrfService) SendSearchNFInstances(nrfUri string, targetNfType, request
param *Nnrf_NFDiscovery.SearchNFInstancesRequest,
) (*models.SearchResult, error) {
// Set client and set url
param.TargetNfType = &targetNfType
param.RequesterNfType = &requestNfType
client := s.getNFDiscClient(nrfUri)
if client == nil {
return nil, openapi.ReportError("nrf not found")
Expand Down Expand Up @@ -239,7 +241,8 @@ func (s *nnrfService) BuildNFInstance(context *amf_context.AMFContext) (
return profile, err
}

func (s *nnrfService) SendRegisterNFInstance(ctx context.Context, nrfUri, nfInstanceId string, profile *models.NrfNfManagementNfProfile) (
func (s *nnrfService) SendRegisterNFInstance(ctx context.Context, nrfUri, nfInstanceId string,
profile *models.NrfNfManagementNfProfile) (
resouceNrfUri string, retrieveNfInstanceId string, err error,
) {
// Set client and set url
Expand Down Expand Up @@ -294,7 +297,6 @@ func (s *nnrfService) SendRegisterNFInstance(ctx context.Context, nrfUri, nfInst
}
finish = true
}

}
}
return resouceNrfUri, retrieveNfInstanceId, err
Expand Down
1 change: 0 additions & 1 deletion internal/sbi/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ func newRouter(s *Server) *gin.Engine {
}

func (s *Server) Run(traceCtx context.Context, wg *sync.WaitGroup) error {

wg.Add(1)
go s.startServer(wg)

Expand Down

0 comments on commit d6ec27e

Please sign in to comment.