소스 검색

Remove options from Clerk interface.

Jing Yang 4 년 전
부모
커밋
dd212c071c
1개의 변경된 파일4개의 추가작업 그리고 14개의 파일을 삭제
  1. 4 14
      kvraft/src/client.rs

+ 4 - 14
kvraft/src/client.rs

@@ -27,26 +27,16 @@ impl Clerk {
         inner.get(key, Default::default())
     }
 
-    pub fn put(
-        &mut self,
-        key: String,
-        value: String,
-        options: KVRaftOptions,
-    ) -> Option<()> {
+    pub fn put(&mut self, key: String, value: String) -> Option<()> {
         let (init, inner) = (&self.init, &mut self.inner);
         init.call_once(|| inner.commit_sentinel());
-        inner.put(key, value, options)
+        inner.put(key, value, Default::default())
     }
 
-    pub fn append(
-        &mut self,
-        key: String,
-        value: String,
-        options: KVRaftOptions,
-    ) -> Option<()> {
+    pub fn append(&mut self, key: String, value: String) -> Option<()> {
         let (init, inner) = (&self.init, &mut self.inner);
         init.call_once(|| inner.commit_sentinel());
-        inner.append(key, value, options)
+        inner.append(key, value, Default::default())
     }
 }