examples/concurrency: cleanup (#6018)

pull/6023/head
Steve Phillips 2020-07-29 10:11:08 -07:00 committed by GitHub
parent 4500e7131e
commit b5de19dc03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ fn vlang_time(mut wg sync.WaitGroup) ?string {
start := time.ticks()
data := http.get('https://vlang.io/utc_now')?
finish := time.ticks()
println('Finish getting time ${(finish-start)} ms')
println('Finish getting time ${finish - start} ms')
println(data.text)
wg.done()
return data.text
@ -16,7 +16,7 @@ fn remote_ip(mut wg sync.WaitGroup) ?string {
start := time.ticks()
data := http.get('https://api.ipify.org')?
finish := time.ticks()
println('Finish getting ip ${(finish-start)} ms')
println('Finish getting ip ${finish - start} ms')
println(data.text)
wg.done()
return data.text