1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vweb: update vweb_test_server.v

This commit is contained in:
Alexander Medvednikov
2021-05-11 09:52:08 +03:00
parent 0b75a21aab
commit 72a135c7c5
2 changed files with 5 additions and 3 deletions

View File

@ -30,13 +30,13 @@ fn main() {
assert timeout > 0
go exit_after_timeout(timeout)
//
mut app := &App{
app := &App{
port: http_port
timeout: timeout
}
eprintln('>> webserver: started on http://127.0.0.1:$app.port/ , with maximum runtime of $app.timeout milliseconds.')
// vweb.run<App>(mut app, http_port)
vweb.run(mut app, http_port)
vweb.run(app, http_port)
}
// pub fn (mut app App) init_server() {