File tree Expand file tree Collapse file tree 6 files changed +14
-11
lines changed Expand file tree Collapse file tree 6 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ The codebase uses a custom dependency injection system defined in `config/inject
133133
134134## Important Notes
135135
136- - This is a Rust nightly project (see ` rust-toolchain.toml ` )
136+ - ** Rust Nightly ** : Uses nightly-2025-08-01 (see ` rust-toolchain.toml ` )
137137- Uses custom forks of Arrow/DataFusion and sqlparser-rs for Cube-specific features
138138- Distributed mode involves router and worker nodes communicating via RPC
139139- Heavy use of async/await patterns with Tokio runtime
Original file line number Diff line number Diff line change 1- #![ feature( async_closure) ]
21#![ feature( test) ]
32
43pub use crate :: benches:: cubestore_benches;
Original file line number Diff line number Diff line change @@ -273,8 +273,10 @@ impl RocksCacheStore {
273273 . upload_loop
274274 . process (
275275 cachestore. clone ( ) ,
276- async move |_| Ok ( Delay :: new ( Duration :: from_secs ( upload_interval) ) . await ) ,
277- async move |m, _| m. store . run_upload ( ) . await ,
276+ move |_| async move {
277+ Ok ( Delay :: new ( Duration :: from_secs ( upload_interval) ) . await )
278+ } ,
279+ move |m, _| async move { m. store . run_upload ( ) . await } ,
278280 )
279281 . await ;
280282
@@ -292,8 +294,10 @@ impl RocksCacheStore {
292294 . metrics_loop
293295 . process (
294296 cachestore. clone ( ) ,
295- async move |_| Ok ( Delay :: new ( Duration :: from_secs ( metrics_interval) ) . await ) ,
296- async move |m, _| {
297+ move |_| async move {
298+ Ok ( Delay :: new ( Duration :: from_secs ( metrics_interval) ) . await )
299+ } ,
300+ move |m, _| async move {
297301 if let Err ( err) = m. submit_metrics ( ) . await {
298302 log:: error!( "Error while submitting cachestore metrics: {}" , err)
299303 } ;
Original file line number Diff line number Diff line change @@ -403,8 +403,8 @@ impl HttpServer {
403403 let drop_processing_messages_after = self . drop_processing_messages_after . clone ( ) ;
404404 let drop_orphaned_messages_loop = self . drop_orphaned_messages_loop . process (
405405 messages_state,
406- async move |_| Ok ( Delay :: new ( check_orphaned_messages_interval. clone ( ) ) . await ) ,
407- async move |messages_state, _| {
406+ move |_| async move { Ok ( Delay :: new ( check_orphaned_messages_interval. clone ( ) ) . await ) } ,
407+ move |messages_state, _| async move {
408408 let mut messages_state = messages_state. lock ( ) . await ;
409409 let mut keys_to_remove = Vec :: new ( ) ;
410410 let mut orphaned_complete_results = 0 ;
Original file line number Diff line number Diff line change @@ -1428,8 +1428,8 @@ impl RocksMetaStore {
14281428 self . upload_loop
14291429 . process (
14301430 self . clone ( ) ,
1431- async move |_| Ok ( Delay :: new ( Duration :: from_secs ( upload_interval) ) . await ) ,
1432- async move |m, _| m. store . run_upload ( ) . await ,
1431+ move |_| async move { Ok ( Delay :: new ( Duration :: from_secs ( upload_interval) ) . await ) } ,
1432+ move |m, _| async move { m. store . run_upload ( ) . await } ,
14331433 )
14341434 . await ;
14351435 }
Original file line number Diff line number Diff line change 11[toolchain ]
2- channel = " nightly-2024-01-29 "
2+ channel = " nightly-2025-08-01 "
33components = [" rustfmt" , " clippy" ]
44profile = " minimal"
You can’t perform that action at this time.
0 commit comments