Skip to content

Commit

Permalink
fix: check the naming rules
Browse files Browse the repository at this point in the history
  • Loading branch information
tim1207 committed Oct 29, 2024
1 parent 10fdeef commit 8c2e532
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions internal/gmm/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1140,9 +1140,9 @@ func handleRequestedNssai(ue *context.AmfUe, anType models.AccessType) error {
if needSliceSelection {
if ue.NssfUri == "" {
for {
reqparam := Nnrf_NFDiscovery.SearchNFInstancesRequest{}
reqParam := Nnrf_NFDiscovery.SearchNFInstancesRequest{}
errSearchNssf := consumer.GetConsumer().SearchNssfNSSelectionInstance(
ue, amfSelf.NrfUri, models.NrfNfManagementNfType_NSSF, models.NrfNfManagementNfType_AMF, &reqparam)
ue, amfSelf.NrfUri, models.NrfNfManagementNfType_NSSF, models.NrfNfManagementNfType_AMF, &reqParam)
if errSearchNssf != nil {
ue.GmmLog.Errorf("AMF can not select an NSSF Instance by NRF[Error: %+v]", errSearchNssf)
time.Sleep(2 * time.Second)
Expand Down
4 changes: 2 additions & 2 deletions internal/sbi/consumer/udm_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ func (s *nudmService) SDMGetSmfSelectData(ue *amf_context.AmfUe) (problemDetails
err = localErr
if apiErr, ok := localErr.(openapi.GenericOpenAPIError); ok {
// API error
geterr := apiErr.Model().(Nudm_SubscriberDataManagement.GetSmfSelDataError)
problemDetails = &geterr.ProblemDetails
getErr := apiErr.Model().(Nudm_SubscriberDataManagement.GetSmfSelDataError)
problemDetails = &getErr.ProblemDetails
}
}

Expand Down

0 comments on commit 8c2e532

Please sign in to comment.