1
0
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:
Miccah
2021-06-16 18:08:02 -05:00
committed by GitHub
parent ae014ad06d
commit 6a19a13812
2 changed files with 9 additions and 3 deletions

View File

@@ -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)
}
}