diff --git a/internal/api/handler/default.go b/internal/api/handler/default.go index 1e4836d04..9a5cebb32 100644 --- a/internal/api/handler/default.go +++ b/internal/api/handler/default.go @@ -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) } @@ -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) }