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 committed Apr 27, 2024
1 parent 4b0a5f8 commit 0661278
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)
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 0661278

Please sign in to comment.