Skip to content

Commit

Permalink
fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
shotasilagadzetaal committed Jan 15, 2025
1 parent c9b088d commit 13e0a18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/api/handler/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ func (m ArcDefaultHandler) postTransaction(ctx echo.Context, params api.POSTTran
// POSTTransaction ...
func (m ArcDefaultHandler) POSTTransaction(ctx echo.Context, params api.POSTTransactionParams) (err error) {
timeout := m.defaultTimeout
if params.XMaxTimeout != nil && *params.XMaxTimeout < metamorph.MaxTimeout {
if params.XMaxTimeout != nil && *params.XMaxTimeout <= metamorph.MaxTimeout {
timeout = time.Second * time.Duration(*params.XMaxTimeout)
}

Expand Down Expand Up @@ -483,7 +483,7 @@ func (m ArcDefaultHandler) postTransactions(ctx echo.Context, params api.POSTTra
// POSTTransactions ...
func (m ArcDefaultHandler) POSTTransactions(ctx echo.Context, params api.POSTTransactionsParams) (err error) {
timeout := m.defaultTimeout
if params.XMaxTimeout != nil && *params.XMaxTimeout < metamorph.MaxTimeout {
if params.XMaxTimeout != nil && *params.XMaxTimeout <= metamorph.MaxTimeout {
timeout = time.Second * time.Duration(*params.XMaxTimeout)
}

Expand Down

0 comments on commit 13e0a18

Please sign in to comment.