Skip to content

Commit

Permalink
Request Queues - fixed code examples
Browse files Browse the repository at this point in the history
Ending parentheses were missing in some function calls in the code examples, this fixes it.
  • Loading branch information
fnesveda committed Apr 28, 2020
1 parent c6498e7 commit 6d43770
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/storage/request_queue.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ To open a request queue, use `Apify.openRequestQueue()` [[see docs](https://sdk.
If queue is opened then you can use it:

// Add requests to queue
await queue.addRequest(new Apify.Request({ url: 'http://example.com/aaa'});
await queue.addRequest(new Apify.Request({ url: 'http://example.com/bbb'});
await queue.addRequest(new Apify.Request({ url: 'http://example.com/foo/bar'}, { forefront: true });
await queue.addRequest(new Apify.Request({ url: 'http://example.com/aaa'}));
await queue.addRequest(new Apify.Request({ url: 'http://example.com/bbb'}));
await queue.addRequest(new Apify.Request({ url: 'http://example.com/foo/bar'}, { forefront: true }));

// Get requests from queue
const request1 = queue.fetchNextRequest();
Expand Down

0 comments on commit 6d43770

Please sign in to comment.