mirror of
https://github.com/logos-messaging/message-finder.git
synced 2026-01-02 14:03:11 +00:00
Merge pull request #6 from waku-org/typo-message-page-in-legacy
main.go: pass PageSize param to legacy req instead of 20 hardcoded
This commit is contained in:
commit
329af027ab
3
main.go
3
main.go
@ -252,6 +252,7 @@ func QueryMessages(ctx context.Context, opts Options) error {
|
||||
}
|
||||
|
||||
cnt := 0
|
||||
|
||||
if !options.UseLegacy {
|
||||
var criteria store.Criteria
|
||||
|
||||
@ -352,7 +353,7 @@ func QueryMessages(ctx context.Context, opts Options) error {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), options.QueryTimeout)
|
||||
result, err := wakuNode.LegacyStore().Query(ctx, query,
|
||||
legacy_store.WithPeerAddr(*options.StoreNode),
|
||||
legacy_store.WithPaging(false, 20),
|
||||
legacy_store.WithPaging(false, options.PageSize),
|
||||
)
|
||||
ellapsed := time.Since(now)
|
||||
cancel()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user