Only set constant variable when needed with parallel feature

This commit is contained in:
Tobie Morgan Hitchcock 2022-05-13 22:00:51 +01:00
parent 7bd5802e99
commit 4740fa7bb1

View file

@ -1,4 +1,5 @@
// Specifies how many concurrent jobs can be buffered in the worker channel. // Specifies how many concurrent jobs can be buffered in the worker channel.
#[cfg(feature = "parallel")]
pub const MAX_CONCURRENT_TASKS: usize = 64; pub const MAX_CONCURRENT_TASKS: usize = 64;
// Specifies how many subqueries will be processed recursively before the query fails. // Specifies how many subqueries will be processed recursively before the query fails.