From 1a0aea4c2917e37aea6a40c58bc6481f6ed52fdc Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Thu, 13 Apr 2023 12:23:14 +0200 Subject: [PATCH] fix v build --- .github/v.sh | 3 --- bench/algorithm/http-server/1.v | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/v.sh b/.github/v.sh index 5a598dbd7..8b02b3b1d 100755 --- a/.github/v.sh +++ b/.github/v.sh @@ -5,9 +5,6 @@ sudo apt-get install -y libgc-dev git clone https://github.com/vlang/v /tmp/vlang cd /tmp/vlang -pushd vlib/vweb -cat vweb.v | sed "s/\bprintln('\[Vweb\] Running/eprintln('[Vweb] Running/" > temp.v && mv temp.v vweb.v -popd make && ./v -version ./v symlink v --version diff --git a/bench/algorithm/http-server/1.v b/bench/algorithm/http-server/1.v index 8e1aab918..86b1c8bee 100644 --- a/bench/algorithm/http-server/1.v +++ b/bench/algorithm/http-server/1.v @@ -13,7 +13,7 @@ fn main() { n = strconv.atoi(os.args[1]) or { 10 } } port := int(rand.u32_in_range(20000, 50000) or { 23333 }) - spawn vweb.run(&App{}, port) + spawn vweb.run_at(&App{}, port: port, show_startup_message: false) url := 'http://localhost:${port}/api' mut ch := chan int{cap: n} for i in 1 .. (n + 1) {