@@ -805,18 +805,18 @@ pub trait RocksStoreDetails: Send + Sync {
805805 fn log_enabled ( & self ) -> bool ;
806806}
807807
808- pub type RocksStoreRWLoopFun = Box < dyn FnOnce ( ) -> Result < ( ) , CubeError > + Send + ' static > ;
808+ pub type RocksStoreRWLoopFn = Box < dyn FnOnce ( ) -> Result < ( ) , CubeError > + Send + ' static > ;
809809
810810#[ derive( Debug , Clone ) ]
811811pub struct RocksStoreRWLoop {
812812 name : & ' static str ,
813- tx : tokio:: sync:: mpsc:: Sender < RocksStoreRWLoopFun > ,
813+ tx : tokio:: sync:: mpsc:: Sender < RocksStoreRWLoopFn > ,
814814 _join_handle : Arc < AbortingJoinHandle < ( ) > > ,
815815}
816816
817817impl RocksStoreRWLoop {
818818 pub fn new ( name : & ' static str ) -> Self {
819- let ( tx, mut rx) = tokio:: sync:: mpsc:: channel :: < RocksStoreRWLoopFun > ( 32_768 ) ;
819+ let ( tx, mut rx) = tokio:: sync:: mpsc:: channel :: < RocksStoreRWLoopFn > ( 32_768 ) ;
820820
821821 let join_handle = cube_ext:: spawn_blocking ( move || loop {
822822 if let Some ( fun) = rx. blocking_recv ( ) {
@@ -843,7 +843,7 @@ impl RocksStoreRWLoop {
843843 }
844844 }
845845
846- pub async fn schedule ( & self , fun : RocksStoreRWLoopFun ) -> Result < ( ) , CubeError > {
846+ pub async fn schedule ( & self , fun : RocksStoreRWLoopFn ) -> Result < ( ) , CubeError > {
847847 self . tx . send ( fun) . await . map_err ( |err| {
848848 CubeError :: user ( format ! (
849849 "Failed to schedule task to RWLoop ({}), error: {}" ,
0 commit comments