From 697d2b3fffc48e9b2ae25fd8e24360bd35ec0331 Mon Sep 17 00:00:00 2001 From: Laura Henning Date: Wed, 18 Sep 2024 15:29:44 +0000 Subject: [PATCH] chore: linting --- internal/sbi/processor/association.go | 10 +++++----- pkg/utils/pfcp_util.go | 5 ----- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/internal/sbi/processor/association.go b/internal/sbi/processor/association.go index 02ec1962..424f5a15 100644 --- a/internal/sbi/processor/association.go +++ b/internal/sbi/processor/association.go @@ -24,11 +24,11 @@ func (p *Processor) ToBeAssociatedWithUPF(smfPfcpContext context.Context, upf *s } for { - // check if SMF PFCP context (parent) was cancelled + // check if SMF PFCP context (parent) was canceled // note: UPF AssociationContexts are children of smfPfcpContext select { case <-smfPfcpContext.Done(): - logger.MainLog.Infoln("Cancelled SMF PFCP context") + logger.MainLog.Infoln("Canceled SMF PFCP context") return default: ensureSetupPfcpAssociation(smfPfcpContext, upf, upfStr) @@ -36,7 +36,7 @@ func (p *Processor) ToBeAssociatedWithUPF(smfPfcpContext context.Context, upf *s return } keepHeartbeatTo(upf, upfStr) - // returns when UPF heartbeat loss is detected or association is cancelled + // returns when UPF heartbeat loss is detected or association is canceled p.releaseAllResourcesOfUPF(upf, upfStr) } @@ -76,7 +76,7 @@ func ensureSetupPfcpAssociation(parentContext context.Context, upf *smf_context. timer := time.After(retryInterval) select { // no default case, either case needs to be true to continue case <-parentContext.Done(): - logger.MainLog.Infoln("Cancelled SMF PFCP context") + logger.MainLog.Infoln("Canceled SMF PFCP context") return case <-timer: continue @@ -128,7 +128,7 @@ func keepHeartbeatTo(upf *smf_context.UPF, upfStr string) { timer := time.After(smf_context.GetSelf().PfcpHeartbeatInterval) select { case <-upf.AssociationContext.Done(): - logger.MainLog.Infof("Cancelled association to UPF[%s]", upfStr) + logger.MainLog.Infof("Canceled association to UPF[%s]", upfStr) return case <-timer: continue diff --git a/pkg/utils/pfcp_util.go b/pkg/utils/pfcp_util.go index f7a66334..01719b92 100644 --- a/pkg/utils/pfcp_util.go +++ b/pkg/utils/pfcp_util.go @@ -11,11 +11,6 @@ import ( "github.com/free5gc/smf/pkg/service" ) -//var ( -// pfcpStart func(a *service.SmfApp) -// pfcpStop func() -//) - func InitPFCPFunc() (func(a *service.SmfApp), func()) { smfContext := smf_context.GetSelf()