From 013fdcbf62d3e64c0ebcda6e2dab39ba1697bdbb Mon Sep 17 00:00:00 2001 From: Bartek Nowotarski Date: Wed, 29 Jul 2020 20:55:25 +0200 Subject: [PATCH] Review fixes --- services/horizon/internal/db2/history/trade.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/horizon/internal/db2/history/trade.go b/services/horizon/internal/db2/history/trade.go index 00fa50c6db..d7b7735c04 100644 --- a/services/horizon/internal/db2/history/trade.go +++ b/services/horizon/internal/db2/history/trade.go @@ -166,9 +166,8 @@ func (q *TradesQ) Page(page db2.PageQuery) *TradesQ { q.sql = sq.SelectBuilder{} } else { q.sql = q.appendOrdering(q.sql, op, idx, page.Order) + q.sql = q.sql.Limit(page.Limit) } - - q.sql = q.sql.Limit(page.Limit) return q }