mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
as
casting
This commit is contained in:
@ -6,7 +6,7 @@ import json
|
||||
import sync
|
||||
|
||||
const (
|
||||
NR_THREADS = 4
|
||||
nr_threads = 4
|
||||
)
|
||||
|
||||
struct Story {
|
||||
@ -73,7 +73,7 @@ fn main() {
|
||||
fetcher.mu = &mtx
|
||||
fetcher.wg = &wg
|
||||
fetcher.wg.add(ids.len)
|
||||
for i := 0; i < NR_THREADS; i++ {
|
||||
for i := 0; i < nr_threads; i++ {
|
||||
go fetcher.fetch()
|
||||
}
|
||||
fetcher.wg.wait()
|
||||
|
Reference in New Issue
Block a user