1 parent 01741dc commit 1b973a5Copy full SHA for 1b973a5
1 file changed
vlib/fasthttp/fasthttp.v
@@ -65,9 +65,9 @@ $if linux {
65
pub:
66
port int = 3000
67
mut:
68
- listen_fds [max_thread_pool_size]int
69
- epoll_fds [max_thread_pool_size]int
70
- threads [max_thread_pool_size]thread
+ listen_fds []int = []int{len: max_thread_pool_size, cap: max_thread_pool_size}
+ epoll_fds []int = []int{len: max_thread_pool_size, cap: max_thread_pool_size}
+ threads []thread = []thread{len: max_thread_pool_size, cap: max_thread_pool_size}
71
request_handler fn (HttpRequest) ![]u8 @[required]
72
}
73
} $else $if macos {
0 commit comments