From aaec76f57934de61f641b7b94980dfd5ce3b26b3 Mon Sep 17 00:00:00 2001 From: pf-lin Date: Fri, 7 Jun 2024 12:39:46 +0000 Subject: [PATCH] fix: add to the processor's method --- internal/sbi/api_callback.go | 3 +-- internal/sbi/processor/callback.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/sbi/api_callback.go b/internal/sbi/api_callback.go index 2f20a31e..3d6674c7 100644 --- a/internal/sbi/api_callback.go +++ b/internal/sbi/api_callback.go @@ -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 { @@ -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) { diff --git a/internal/sbi/processor/callback.go b/internal/sbi/processor/callback.go index 8ca45947..733059ed 100644 --- a/internal/sbi/processor/callback.go +++ b/internal/sbi/processor/callback.go @@ -71,7 +71,7 @@ func (p *Processor) chargingNotificationProcedure( return nil } -func HandleSMPolicyUpdateNotify( +func (p *Processor) HandleSMPolicyUpdateNotify( c *gin.Context, request models.SmPolicyNotification, smContextRef string,