vweb: update vweb_test_server.v
							parent
							
								
									0b75a21aab
								
							
						
					
					
						commit
						72a135c7c5
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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() {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue