From 86402934d3612ca013d9092c77f5de2e86e82240 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 25 Mar 2025 09:12:52 +0200 Subject: [PATCH] examples: fetch 30 stories instead of 10 in examples/news_fetcher.v --- examples/news_fetcher.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/news_fetcher.v b/examples/news_fetcher.v index c87f5a1c36..33bac51236 100644 --- a/examples/news_fetcher.v +++ b/examples/news_fetcher.v @@ -21,7 +21,7 @@ fn worker_fetch(mut p pool.PoolProcessor, cursor int, worker_id int) voidptr { // println(resp.body) return pool.no_result } - println('# ${cursor}) ${story.title} | ${story.url}') + println('# ${cursor + 1}) ${story.title} | ${story.url}') return pool.no_result } @@ -38,7 +38,7 @@ fn main() { return }#[0..10] */ - ids := resp.body.replace_once('[', '').replace_once(']', '').split(',').map(it.int())#[0..10] + ids := resp.body.replace_once('[', '').replace_once(']', '').split(',').map(it.int())#[0..30] mut fetcher_pool := pool.new_pool_processor( callback: worker_fetch )