mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vweb: re-enable concurrency and fix the counter example (#10484)
This commit is contained in:
@@ -334,7 +334,7 @@ pub fn run<T>(global_app &T, port int) {
|
||||
// conn: 0
|
||||
//}
|
||||
mut conn := l.accept() or { panic('accept() failed') }
|
||||
handle_conn<T>(mut conn, mut request_app)
|
||||
go handle_conn<T>(mut conn, mut request_app)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user