Skip to content

Commit

Permalink
Use default N1/T1 if equal to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
louisroyer committed Dec 3, 2024
1 parent 9394345 commit 7c4d215
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pfcp/entity_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ func NewEntityOptions() *EntityOptions {
}

func (eo EntityOptions) MessageRetransmissionT1() time.Duration {
if eo.messageRetransmissionT1 == 0 {
return pfcputil.MESSAGE_RETRANSMISSION_T1
}
return eo.messageRetransmissionT1
}

Expand All @@ -38,6 +41,9 @@ func (eo EntityOptions) SetMessageRetransmissionT1(messageRetransmissionT1 time.
}

func (eo EntityOptions) MessageRetransmissionN1() int {
if eo.messageRetransmissionN1 == 0 {
return pfcputil.MESSAGE_RETRANSMISSION_N1
}
return eo.messageRetransmissionN1
}

Expand Down

0 comments on commit 7c4d215

Please sign in to comment.