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:
@ -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() {
|
||||
|
Reference in New Issue
Block a user