Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable fieldalignment go vet check #56

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ linters-settings:
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
# enable all analyzers
enable-all: true
disable:
- fieldalignment
depguard:
list-type: blacklist
include-go-root: false
Expand Down
12 changes: 6 additions & 6 deletions context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,21 @@ type UDRContext struct {
Name string
UriScheme models.UriScheme
BindingIPv4 string
SBIPort int
RegisterIPv4 string // IP register to NRF
HttpIPv6Address string
NfId string
NrfUri string
SubscriptionDataSubscriptions map[subsId]*models.SubscriptionDataSubscriptions
PolicyDataSubscriptions map[subsId]*models.PolicyDataSubscription
UESubsCollection sync.Map // map[ueId]*UESubsData
UEGroupCollection sync.Map // map[ueGroupId]*UEGroupSubsData
mtx sync.RWMutex
SBIPort int
EeSubscriptionIDGenerator int
SdmSubscriptionIDGenerator int
PolicyDataSubscriptionIDGenerator int
UESubsCollection sync.Map // map[ueId]*UESubsData
UEGroupCollection sync.Map // map[ueGroupId]*UEGroupSubsData
SubscriptionDataSubscriptionIDGenerator int
SubscriptionDataSubscriptions map[subsId]*models.SubscriptionDataSubscriptions
PolicyDataSubscriptions map[subsId]*models.PolicyDataSubscription
appDataInfluDataSubscriptionIdGenerator uint64
mtx sync.RWMutex
}

type UESubsData struct {
Expand Down
7 changes: 3 additions & 4 deletions factory/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,11 @@ type PlmnSupportItem struct {
}

type Sbi struct {
Tls *Tls `yaml:"tls,omitempty"`
Scheme string `yaml:"scheme"`
RegisterIPv4 string `yaml:"registerIPv4,omitempty"` // IP that is registered at NRF.
// IPv6Addr string `yaml:"ipv6Addr,omitempty"`
BindingIPv4 string `yaml:"bindingIPv4,omitempty"` // IP used to run the server in the node.
Port int `yaml:"port"`
Tls *Tls `yaml:"tls,omitempty"`
BindingIPv4 string `yaml:"bindingIPv4,omitempty"` // IP used to run the server in the node.
Port int `yaml:"port"`
}

type Tls struct {
Expand Down
2 changes: 1 addition & 1 deletion factory/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ type UpdateDb struct {
}

type SmPolicyUpdateEntry struct {
Snssai *protos.NSSAI
Imsi string
Dnn string
Snssai *protos.NSSAI
}

var initLog *logrus.Entry
Expand Down
Loading