mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-17 21:20:37 +00:00
minimize
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
use page_cache::FileId;
|
||||
use virtual_file::VirtualFile;
|
||||
|
||||
mod page_cache;
|
||||
@@ -7,7 +6,7 @@ mod virtual_file;
|
||||
fn main() {
|
||||
page_cache::init(10);
|
||||
|
||||
let x: Box<dyn std::future::Future<Output=()> + Send> = Box::new(async move {
|
||||
tokio::spawn(async move {
|
||||
let cache = page_cache::get();
|
||||
|
||||
let res = cache
|
||||
|
||||
@@ -15,12 +15,10 @@ use camino::{Utf8Path, Utf8PathBuf};
|
||||
use once_cell::sync::OnceCell;
|
||||
use std::fs::{self, File};
|
||||
use std::io::{Error, ErrorKind, Seek, SeekFrom};
|
||||
use std::os::fd::{AsFd, AsRawFd, BorrowedFd, FromRawFd, IntoRawFd, OwnedFd, RawFd};
|
||||
use std::os::fd::{AsRawFd, FromRawFd, OwnedFd, RawFd};
|
||||
use std::os::unix::fs::FileExt;
|
||||
use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
|
||||
use std::sync::Arc;
|
||||
use tokio::sync::{RwLock, RwLockReadGuard, RwLockWriteGuard};
|
||||
use tokio::time::Instant;
|
||||
use utils::fs_ext;
|
||||
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user