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

vweb: change optional to result in vweb_test (#16412)

This commit is contained in:
yuyi
2022-11-13 16:57:35 +08:00
committed by GitHub
parent b54f9c2949
commit e8e75251b4
2 changed files with 21 additions and 21 deletions

View File

@ -44,7 +44,7 @@ fn main() {
global_config: config
}
eprintln('>> webserver: pid: $os.getpid(), started on http://localhost:$app.port/ , with maximum runtime of $app.timeout milliseconds.')
vweb.run_at(app, host: 'localhost', port: http_port, family: .ip)?
vweb.run_at(app, host: 'localhost', port: http_port, family: .ip)!
}
// pub fn (mut app App) init_server() {