mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00

committed by
Alexander Medvednikov

parent
0a8d2d5dc7
commit
b907cf2179
@ -67,7 +67,7 @@ fn main() {
|
||||
|
||||
wg := sync.new_waitgroup()
|
||||
mtx := sync.new_mutex()
|
||||
mut fetcher := &Fetcher{ids: ids}
|
||||
mut fetcher := &Fetcher{ids: ids mu: 0 wg: 0}
|
||||
fetcher.mu = &mtx
|
||||
fetcher.wg = &wg
|
||||
fetcher.wg.add(ids.len)
|
||||
|
Reference in New Issue
Block a user