commit 22c66742b578ec4050c2ea717a03090d215b2e21
parent 9a1ad407ae7256cc815a946f533b612c18aa7de6
Author: William Casarin <jb55@jb55.com>
Date: Thu, 28 Nov 2024 14:57:18 -0800
config: add set_mapsize
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/config.rs b/src/config.rs
@@ -47,6 +47,11 @@ impl Config {
self
}
+ pub fn set_mapsize(&mut self, bytes: usize) -> &mut Self {
+ self.config.mapsize = bytes;
+ self
+ }
+
pub fn set_ingester_threads(&mut self, threads: i32) -> &mut Self {
self.config.ingester_threads = threads;
self