Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Millione committed Oct 15, 2024
1 parent d6c8003 commit 9370f24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 3 additions & 4 deletions volo-thrift/src/codec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub mod default;

pub use default::DefaultMakeCodec;

/// [`Decoder`] reads from an [`AsyncRead`] and decodes the data into a [`ThriftMessage`].
/// [`Decoder`] decodes the data into a [`ThriftMessage`].
///
/// Returning an Ok(None) indicates the EOF has been reached.
///
Expand All @@ -24,7 +24,7 @@ pub trait Decoder: Send + Sync + 'static {
}
}

/// [`Encoder`] writes a [`ThriftMessage`] to an [`AsyncWrite`] and flushes the data.
/// [`Encoder`] writes a [`ThriftMessage`] and flushes the data.
///
/// Note: [`Encoder`] should be designed to be ready for reuse.
pub trait Encoder: Send + Sync + 'static {
Expand All @@ -39,8 +39,7 @@ pub trait Encoder: Send + Sync + 'static {
}
}

/// [`MakeCodec`] receives an [`R`] and an [`W`] and returns a
/// [`Decoder`] and an [`Encoder`].
/// [`MakeCodec`] returns a [`Decoder`] and an [`Encoder`].
///
/// The implementation of [`MakeCodec`] must make sure the [`Decoder`] and [`Encoder`]
/// matches.
Expand Down
5 changes: 3 additions & 2 deletions volo/src/net/conn.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#[cfg(target_family = "unix")]
use std::os::fd::{AsRawFd, RawFd};
use std::{
io,
os::fd::{AsRawFd, RawFd},
pin::Pin,
task::{Context, Poll},
};
Expand Down Expand Up @@ -367,12 +368,12 @@ impl ConnStream {
}
}

#[cfg(target_family = "unix")]
impl AsRawFd for ConnStream {
#[inline]
fn as_raw_fd(&self) -> RawFd {
match self {
Self::Tcp(s) => s.as_raw_fd(),
#[cfg(target_family = "unix")]
Self::Unix(s) => s.as_raw_fd(),
#[cfg(feature = "rustls")]
Self::Rustls(s) => s.as_raw_fd(),
Expand Down

0 comments on commit 9370f24

Please sign in to comment.