mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-18 05:30:37 +00:00
no tokio spawn required
This commit is contained in:
@@ -4,11 +4,10 @@ use virtual_file::VirtualFile;
|
||||
mod page_cache;
|
||||
mod virtual_file;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
fn main() {
|
||||
page_cache::init(10);
|
||||
|
||||
tokio::spawn(async move {
|
||||
let x: Box<dyn std::future::Future<Output=()> + Send> = Box::new(async move {
|
||||
let cache = page_cache::get();
|
||||
|
||||
let res = cache
|
||||
|
||||
Reference in New Issue
Block a user