mirror of
https://github.com/neondatabase/neon.git
synced 2026-07-05 13:10:37 +00:00
@@ -1463,8 +1463,7 @@ pub(crate) fn set_io_mode(mode: IoMode) {
|
||||
}
|
||||
|
||||
pub(crate) fn get_io_mode() -> IoMode {
|
||||
let mode = IoMode::try_from(IO_MODE.load(Ordering::Relaxed)).unwrap();
|
||||
mode
|
||||
IoMode::try_from(IO_MODE.load(Ordering::Relaxed)).unwrap()
|
||||
}
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
@@ -1589,10 +1588,10 @@ mod tests {
|
||||
impl Adapter for A {
|
||||
async fn open(
|
||||
path: Utf8PathBuf,
|
||||
mut opts: OpenOptions,
|
||||
opts: OpenOptions,
|
||||
ctx: &RequestContext,
|
||||
) -> Result<MaybeVirtualFile, anyhow::Error> {
|
||||
let vf = VirtualFile::open_with_options(&path, &mut opts, ctx).await?;
|
||||
let vf = VirtualFile::open_with_options(&path, &opts, ctx).await?;
|
||||
Ok(MaybeVirtualFile::VirtualFile(vf))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user