INNER CODE UNIT · Rust
app_version
pbeets/rithmic-rs · src/config.rs:701
pub fn app_version(mut self, app_version: impl Into<String>) -> Self {
self.app_version = Some(app_version.into());
self
}
/// Set the capacity of each plant's subscription broadcast channel.
///
/// Every plant allocates its channel up front, when it connects. Tokio
/// rounds the capacity up to the next power of two and allocates every
/// slot eagerly, and each slot holds a
/// [`RithmicResponse`](crate::RithmicResponse) of about 1.3 KB. The default
/// of 10,000 becomes 16,384 slots, about 22 MB per plant (the repository
/// plant defaults to 64). Lower the capacity to save memory when you run
/// many plants.
///
/// The memory grows with the capacity, so set it to what your consumer
/// needs. A capacity too large to allocate fails in the plant's
/// `connect`: the process aborts or is killed for lack of memory, or