From 99a72d3603b3336840c4cca76f4aa273b3957904 Mon Sep 17 00:00:00 2001 From: newb1er Date: Thu, 25 Apr 2024 14:00:09 +0800 Subject: [PATCH] fix: ci complains --- internal/sbi/processor/nf_instance_id_document.go | 3 ++- internal/sbi/server/server.go | 3 ++- pkg/service/init.go | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/internal/sbi/processor/nf_instance_id_document.go b/internal/sbi/processor/nf_instance_id_document.go index ca41dcb..2136608 100644 --- a/internal/sbi/processor/nf_instance_id_document.go +++ b/internal/sbi/processor/nf_instance_id_document.go @@ -12,12 +12,13 @@ package processor import ( "net/http" + "github.com/gin-gonic/gin" + "github.com/free5gc/nssf/internal/logger" "github.com/free5gc/nssf/internal/plugin" "github.com/free5gc/nssf/internal/sbi/nssaiavailability" "github.com/free5gc/openapi" "github.com/free5gc/openapi/models" - "github.com/gin-gonic/gin" ) // HandleNSSAIAvailabilityDelete - Deletes an already existing S-NSSAIs per TA diff --git a/internal/sbi/server/server.go b/internal/sbi/server/server.go index 887305c..0085541 100644 --- a/internal/sbi/server/server.go +++ b/internal/sbi/server/server.go @@ -7,12 +7,13 @@ import ( "sync" "time" + "github.com/gin-gonic/gin" + "github.com/free5gc/nssf/internal/logger" "github.com/free5gc/nssf/internal/sbi" "github.com/free5gc/nssf/pkg/factory" "github.com/free5gc/util/httpwrapper" logger_util "github.com/free5gc/util/logger" - "github.com/gin-gonic/gin" ) type Server struct { diff --git a/pkg/service/init.go b/pkg/service/init.go index be633f6..125bad3 100644 --- a/pkg/service/init.go +++ b/pkg/service/init.go @@ -158,7 +158,7 @@ func (a *NssfApp) Start(tlsKeyLogPath string) { logger.InitLog.Errorf("Register to NRF failed: %+v", err) } - // Gracefull deregister when panic + // Graceful deregister when panic defer func() { if p := recover(); p != nil { logger.InitLog.Errorf("panic: %v\n%s", p, string(debug.Stack()))