Skip to content

Commit

Permalink
fix: linter error and add parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
tim1207 authored and andy89923 committed Apr 29, 2024
1 parent 8f415c0 commit f9a1bc7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion internal/ngap/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func listenAndServe(addr *sctp.SCTPAddr, handler NGAPHandler, sctpConfig *sctp.S
logger.NgapLog.Infof("Listen on %s", sctpListener.Addr())

for {
newConn, err := sctpListener.AcceptSCTP()
newConn, err := sctpListener.AcceptSCTP(5)

Check failure on line 90 in internal/ngap/service/service.go

View workflow job for this annotation

GitHub Actions / Go 1.21 sample

too many arguments in call to sctpListener.AcceptSCTP

Check failure on line 90 in internal/ngap/service/service.go

View workflow job for this annotation

GitHub Actions / lint (1.21)

too many arguments in call to sctpListener.AcceptSCTP

Check failure on line 90 in internal/ngap/service/service.go

View workflow job for this annotation

GitHub Actions / lint (1.21)

too many arguments in call to sctpListener.AcceptSCTP
if err != nil {
switch err {
case syscall.EINTR, syscall.EAGAIN:
Expand Down
1 change: 0 additions & 1 deletion internal/sbi/consumer/smf_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/free5gc/amf/internal/logger"
"github.com/free5gc/amf/internal/util"
"github.com/free5gc/amf/pkg/factory"

"github.com/free5gc/nas/nasMessage"
"github.com/free5gc/openapi"
"github.com/free5gc/openapi/Nnrf_NFDiscovery"
Expand Down

0 comments on commit f9a1bc7

Please sign in to comment.