@@ -24,7 +24,7 @@ pub trait Store: Sync + Send {
2424
2525 async fn zscan ( & self , key : & str , pattern : & str ) -> Result < Vec < ( Value , f64 ) > , Error > ;
2626
27- async fn cf_exists ( & self , key : & str , item : & str ) -> Result < bool , Error > ;
27+ async fn bf_exists ( & self , key : & str , item : & str ) -> Result < bool , Error > ;
2828}
2929
3030#[ async_trait:: async_trait]
@@ -85,14 +85,14 @@ impl key_value::HostStore for KeyValueStore {
8585 KeyValueStore :: zscan ( self , store_id, & key, & pattern) . await
8686 }
8787
88- async fn cf_exists (
88+ async fn bf_exists (
8989 & mut self ,
9090 store : Resource < key_value:: Store > ,
9191 key : String ,
9292 item : String ,
9393 ) -> Result < bool , Error > {
9494 let store_id = store. rep ( ) ;
95- KeyValueStore :: cf_exists ( self , store_id, & key, & item) . await
95+ KeyValueStore :: bf_exists ( self , store_id, & key, & item) . await
9696 }
9797
9898 async fn drop ( & mut self , store : Resource < key_value:: Store > ) -> Result < ( ) , wasmtime:: Error > {
@@ -171,11 +171,11 @@ impl KeyValueStore {
171171
172172 /// Get a value from a store by key.
173173 #[ instrument( skip( self ) , level = "trace" , ret, err) ]
174- pub async fn cf_exists ( & self , store : u32 , key : & str , item : & str ) -> Result < bool , Error > {
174+ pub async fn bf_exists ( & self , store : u32 , key : & str , item : & str ) -> Result < bool , Error > {
175175 let Some ( store) = self . stores . get ( store as usize ) else {
176176 return Err ( Error :: NoSuchStore ) ;
177177 } ;
178- store. cf_exists ( key, item) . await
178+ store. bf_exists ( key, item) . await
179179 }
180180}
181181
0 commit comments