vweb: update vweb_test_server.v

pull/10081/head
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

@ -74,7 +74,9 @@ x := 10
5+7
8+4
'
table := &ast.Table{}
table := &ast.Table{
cur_fn: 0
}
vpref := &pref.Preferences{}
gscope := &ast.Scope{
parent: 0

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() {