From e67dc3ec7f3d15f2b3aa2fcfd20556b46ed87982 Mon Sep 17 00:00:00 2001 From: Alexander Regueiro Date: Mon, 21 Nov 2016 17:03:22 +0000 Subject: [PATCH] Fixed method names. --- src/rocksdb_options.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rocksdb_options.rs b/src/rocksdb_options.rs index 27561a6..8b6164e 100644 --- a/src/rocksdb_options.rs +++ b/src/rocksdb_options.rs @@ -183,7 +183,7 @@ impl Options { /// DBCompressionType::Snappy /// ]); /// ``` - pub fn compression_per_level(&mut self, level_types: &[DBCompressionType]) { + pub fn set_compression_per_level(&mut self, level_types: &[DBCompressionType]) { unsafe { let level_types: Vec<_> = level_types.iter().map(|&t| t as c_int).collect(); ffi::rocksdb_options_set_compression_per_level(self.inner, @@ -346,7 +346,7 @@ impl Options { /// let mut opts = Options::default(); /// opts.allow_os_buffer(false); /// ``` - pub fn allow_os_buffer(&mut self, is_allow: bool) { + pub fn set_allow_os_buffer(&mut self, is_allow: bool) { unsafe { ffi::rocksdb_options_set_allow_os_buffer(self.inner, is_allow as c_uchar); }