Skip to content

Commit

Permalink
fix: name error
Browse files Browse the repository at this point in the history
  • Loading branch information
a3828162 committed May 23, 2024
1 parent dfb8312 commit 2decf1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions internal/sbi/consumer/nrf_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ func (s *nnrfService) SendSearchNFInstances(
*models.SearchResult, error,
) {
// Set client and set url
chfContext := s.consumer.Context()
udmContext := s.consumer.Context()

client := s.getNFDiscClient(chfContext.NrfUri)
client := s.getNFDiscClient(udmContext.NrfUri)

ctx, _, err := udm_context.GetSelf().GetTokenCtx(models.ServiceName_NNRF_DISC, models.NfType_NRF)
if err != nil {
Expand Down Expand Up @@ -150,7 +150,7 @@ func (s *nnrfService) RegisterNFInstance(ctx context.Context) (
for {
nf, res, err = client.NFInstanceIDDocumentApi.RegisterNFInstance(context.TODO(), udmContext.NfId, nfProfile)
if err != nil || res == nil {
logger.ConsumerLog.Errorf("CHF register to NRF Error[%v]", err)
logger.ConsumerLog.Errorf("UDM register to NRF Error[%v]", err)
time.Sleep(2 * time.Second)
continue
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/service/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func (a *UdmApp) Terminate() {
} else {
logger.MainLog.Infof("Deregister from NRF successfully")
}
logger.MainLog.Infof("CHF SBI Server terminated")
logger.MainLog.Infof("UDM SBI Server terminated")
}

func (a *UdmApp) listenShutdownEvent() {
Expand All @@ -245,7 +245,7 @@ func (a *UdmApp) CallServerStop() {

func (a *UdmApp) WaitRoutineStopped() {
a.wg.Wait()
logger.MainLog.Infof("CHF App is terminated")
logger.MainLog.Infof("UDM App is terminated")
}

func (a *UdmApp) Config() *factory.Config {
Expand Down

0 comments on commit 2decf1b

Please sign in to comment.