mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-05 19:00:33 -05:00
fix
This commit is contained in:
parent
027d39e9a5
commit
e820cb83ea
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ let domains_ : worker array lazy_t =
|
|||
lazy
|
||||
((* number of domains we spawn. Note that we spawn n-1 domains
|
||||
because there already is the main domain running. *)
|
||||
let n = Domain_.recommended_number () - 1 in
|
||||
let n = max 1 (Domain_.recommended_number () - 1) in
|
||||
Array.init n (fun i ->
|
||||
let q = Bb_queue.create () in
|
||||
let _domain : domain = Domain_.spawn (fun () -> work_ i q) in
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue