Skip to content

Commit

Permalink
add missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
brayniac committed Oct 8, 2024
1 parent a431c50 commit 850a863
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/config/oltp.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
use super::*;

#[derive(Clone, Deserialize)]
pub struct Oltp {
/// The number of connections this process will have to each endpoint.
poolsize: usize,
// number of threads for oltp tasks
threads: usize,
}

impl Oltp {
pub fn threads(&self) -> usize {
self.threads
}

pub fn poolsize(&self) -> usize {
std::cmp::max(1, self.poolsize)
}
}

0 comments on commit 850a863

Please sign in to comment.