mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-16 18:02:56 +00:00
fix some minor warnings
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
use std::pin::Pin;
|
||||
|
||||
use futures::{
|
||||
stream::{SplitSink, SplitStream},
|
||||
|
||||
@@ -249,7 +249,7 @@ impl IoConcurrency {
|
||||
trace!(task_id, "spawning");
|
||||
tokio::spawn(async move {
|
||||
trace!("start");
|
||||
scopeguard::defer!({ trace!("end") });
|
||||
scopeguard::defer!{ trace!("end") };
|
||||
type IosRx = tokio::sync::mpsc::UnboundedReceiver<IoFuture>;
|
||||
type BarrierReqRx =
|
||||
tokio::sync::mpsc::UnboundedReceiver<tokio::sync::oneshot::Sender<()>>;
|
||||
@@ -426,7 +426,7 @@ impl IoConcurrency {
|
||||
let io_num = IO_NUM.fetch_add(1, std::sync::atomic::Ordering::Relaxed);
|
||||
let fut = async move {
|
||||
trace!("start");
|
||||
scopeguard::defer!({ trace!("end") });
|
||||
scopeguard::defer!(trace!("end"));
|
||||
fut.await
|
||||
}
|
||||
.instrument(tracing::trace_span!("spawned_io", %io_num));
|
||||
|
||||
@@ -15,7 +15,6 @@ pub(super) mod tokio_epoll_uring_ext;
|
||||
use tokio_epoll_uring::IoBuf;
|
||||
use tracing::Instrument;
|
||||
|
||||
use crate::log_if_slow;
|
||||
|
||||
pub(crate) use super::api::IoEngineKind;
|
||||
#[derive(Clone, Copy)]
|
||||
@@ -112,7 +111,6 @@ pub(crate) fn get() -> IoEngine {
|
||||
use std::{
|
||||
os::unix::prelude::FileExt,
|
||||
sync::atomic::{AtomicU8, Ordering},
|
||||
time::Duration,
|
||||
};
|
||||
|
||||
use super::{
|
||||
|
||||
Reference in New Issue
Block a user