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 5
5
sudo apt-get install -y libgc-dev
6
6
git clone https://github.com/vlang/v /tmp/vlang
7
7
cd /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
11
8
make && ./v -version
12
9
./v symlink
13
10
v --version
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ fn main() {
13
13
n = strconv.atoi (os.args[1 ]) or { 10 }
14
14
}
15
15
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 )
17
17
url := 'http://localhost:${port} /api'
18
18
mut ch := chan int {cap: n}
19
19
for i in 1 .. (n + 1 ) {
You can’t perform that action at this time.
0 commit comments