Skip to content

Commit

Permalink
refactor: nssf context init function
Browse files Browse the repository at this point in the history
  • Loading branch information
yccodr committed May 10, 2024
1 parent 0ed8569 commit 4700f68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ type NSSFContext struct {

// Initialize NSSF context with configuration factory
func InitNssfContext() {
Init()

nssfConfig := factory.NssfConfig
if nssfConfig.Configuration.NssfName != "" {
nssfContext.Name = nssfConfig.Configuration.NssfName
}

nssfContext.NfId = uuid.New().String()
nssfContext.Name = "NSSF"
nssfContext.UriScheme = nssfConfig.Configuration.Sbi.Scheme
nssfContext.RegisterIPv4 = nssfConfig.Configuration.Sbi.RegisterIPv4
nssfContext.SBIPort = nssfConfig.Configuration.Sbi.Port
Expand Down

0 comments on commit 4700f68

Please sign in to comment.