Skip to content

Commit

Permalink
fix: fix build failed
Browse files Browse the repository at this point in the history
  • Loading branch information
ianchen0119 committed Jul 18, 2024
1 parent d21af26 commit 0e6b052
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/sbi/processor/smpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,13 +426,13 @@ func (p *Processor) HandleCreateSmPolicyRequest(
if bsfUri != "" {
bsfClient := util.GetNbsfClient(bsfUri)

ctx, pd, err = p.Context().GetTokenCtx(models.ServiceName_NBSF_MANAGEMENT, models.NfType_BSF)
ctx, pd, err := p.Context().GetTokenCtx(models.ServiceName_NBSF_MANAGEMENT, models.NfType_BSF)
if err != nil {
c.JSON(int(pd.Status), pd)
return
}

_, resp, err = bsfClient.PCFBindingsCollectionApi.CreatePCFBinding(ctx, pcfBinding)
_, resp, err := bsfClient.PCFBindingsCollectionApi.CreatePCFBinding(ctx, pcfBinding)
if err != nil || resp == nil || resp.StatusCode != http.StatusCreated {
logger.SmPolicyLog.Warnf("Create PCF binding data in BSF error[%+v]", err)
// Uncomment the following to return error response --> PDU SessEstReq will fail
Expand Down

0 comments on commit 0e6b052

Please sign in to comment.