Skip to content

Commit

Permalink
fix: add to the processor's method
Browse files Browse the repository at this point in the history
  • Loading branch information
pf-lin committed Jun 7, 2024
1 parent 723e385 commit aaec76f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions internal/sbi/api_callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"github.com/free5gc/openapi"
"github.com/free5gc/openapi/models"
"github.com/free5gc/smf/internal/logger"
"github.com/free5gc/smf/internal/sbi/processor"
)

func (s *Server) getCallbackRoutes() []Route {
Expand Down Expand Up @@ -47,7 +46,7 @@ func (s *Server) HTTPSmPolicyUpdateNotification(c *gin.Context) {
}

smContextRef := c.Params.ByName("smContextRef")
processor.HandleSMPolicyUpdateNotify(c, request, smContextRef)
s.Processor().HandleSMPolicyUpdateNotify(c, request, smContextRef)
}

func (s *Server) SmPolicyControlTerminationRequestNotification(c *gin.Context) {
Expand Down
2 changes: 1 addition & 1 deletion internal/sbi/processor/callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (p *Processor) chargingNotificationProcedure(
return nil
}

func HandleSMPolicyUpdateNotify(
func (p *Processor) HandleSMPolicyUpdateNotify(
c *gin.Context,
request models.SmPolicyNotification,
smContextRef string,
Expand Down

0 comments on commit aaec76f

Please sign in to comment.