Skip to content

fix: correct typo in AdditionalQosFlows variable name#222

Merged
Alonza0314 merged 1 commit into
free5gc:mainfrom
DBGR18:fix/typo
May 20, 2026
Merged

fix: correct typo in AdditionalQosFlows variable name#222
Alonza0314 merged 1 commit into
free5gc:mainfrom
DBGR18:fix/typo

Conversation

@DBGR18

@DBGR18 DBGR18 commented May 19, 2026

Copy link
Copy Markdown
Contributor

This pull request corrects a consistent typo in the SMContext struct and related code, changing all instances of the field name AdditonalQosFlows to AdditionalQosFlows. This improves code readability and prevents potential bugs caused by inconsistent naming.

Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings May 19, 2026 08:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Fixes a typo in the SMContext QoS flow map field name to improve readability and consistency across the context and NGAP/NAS builders.

Changes:

  • Renamed AdditonalQosFlows to AdditionalQosFlows on SMContext
  • Updated all shown call sites/builders/handlers to use the corrected field name

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
internal/context/sm_context_policy.go Updates QoS flow add/remove helpers to use the corrected map field name
internal/context/sm_context.go Renames the SMContext struct field and initializes the corrected map in NewSMContext
internal/context/ngap_handler.go Updates NGAP response handling to iterate/lookup the corrected QoS flow map
internal/context/ngap_build.go Updates NGAP request builders to iterate the corrected QoS flow map
internal/context/gsm_build.go Updates NAS (GSM) builder to iterate the corrected QoS flow map

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

AMBRQerMap map[uuid.UUID]uint32
QerUpfMap map[string]uint32
AdditonalQosFlows map[uint8]*QoSFlow // Key: qfi
AdditionalQosFlows map[uint8]*QoSFlow // Key: qfi
@roundspring2003

Copy link
Copy Markdown
Contributor

@Alonza0314 LGTM

@Alonza0314 Alonza0314 merged commit 9a18772 into free5gc:main May 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants