Skip to content

Commit

Permalink
chore: replace ctx with context.Background()
Browse files Browse the repository at this point in the history
  • Loading branch information
KunLee76 committed Oct 15, 2024
1 parent 9ddac42 commit ebf47db
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions internal/sbi/processor/nf_management.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,8 @@ func (p *Processor) UpdateNFInstanceProcedure(nfInstanceID string, patchJSON []b
Notification_event := models.NotificationEventType_PROFILE_CHANGED
nfInstanceUri := nrf_context.GetNfInstanceURI(nfInstanceID)

ctx := context.Background()

for _, uri := range uriList {
p.Consumer().SendNFStatusNotify(ctx, Notification_event, nfInstanceUri, uri, &nfProfiles[0])
p.Consumer().SendNFStatusNotify(context.Background(), Notification_event, nfInstanceUri, uri, &nfProfiles[0])
}
return nf
}
Expand Down Expand Up @@ -486,10 +484,9 @@ func (p *Processor) NFRegisterProcedure(
// Add NF Register Conter
p.Context().AddNfRegister()

ctx := context.Background()

for _, uri := range uriList {
problemDetails := p.Consumer().SendNFStatusNotify(ctx, Notification_event, nfInstanceUri, uri, nfProfile)
problemDetails := p.Consumer().SendNFStatusNotify(context.Background(),
Notification_event, nfInstanceUri, uri, nfProfile)
if problemDetails != nil {
util.GinProblemJson(c, problemDetails)
return
Expand Down

0 comments on commit ebf47db

Please sign in to comment.