File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
bench/algorithm/http-server Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 55sudo apt-get install -y libgc-dev
66git clone https://github.com/vlang/v /tmp/vlang
77cd /tmp/vlang
8- pushd vlib/vweb
9- cat vweb.v | sed " s/\bprintln('\[Vweb\] Running/eprintln('[Vweb] Running/" > temp.v && mv temp.v vweb.v
10- popd
118make && ./v -version
129./v symlink
1310v --version
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ fn main() {
1313 n = strconv.atoi (os.args[1 ]) or { 10 }
1414 }
1515 port := int (rand.u32_in_range (20000 , 50000 ) or { 23333 })
16- spawn vweb.run (& App{}, port)
16+ spawn vweb.run_at (& App{}, port: port, show_startup_message: false )
1717 url := 'http://localhost:${port} /api'
1818 mut ch := chan int {cap: n}
1919 for i in 1 .. (n + 1 ) {
You can’t perform that action at this time.
0 commit comments