Skip to content

Commit

Permalink
fix v build
Browse files Browse the repository at this point in the history
  • Loading branch information
hanabi1224 committed Apr 13, 2023
1 parent bab7401 commit 1a0aea4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions .github/v.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bench/algorithm/http-server/1.v
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1a0aea4

Please sign in to comment.