Skip to content

Commit 1b973a5

Browse files
committed
fix
1 parent 01741dc commit 1b973a5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

vlib/fasthttp/fasthttp.v

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ $if linux {
6565
pub:
6666
port int = 3000
6767
mut:
68-
listen_fds [max_thread_pool_size]int
69-
epoll_fds [max_thread_pool_size]int
70-
threads [max_thread_pool_size]thread
68+
listen_fds []int = []int{len: max_thread_pool_size, cap: max_thread_pool_size}
69+
epoll_fds []int = []int{len: max_thread_pool_size, cap: max_thread_pool_size}
70+
threads []thread = []thread{len: max_thread_pool_size, cap: max_thread_pool_size}
7171
request_handler fn (HttpRequest) ![]u8 @[required]
7272
}
7373
} $else $if macos {

0 commit comments

Comments
 (0)