Skip to content

Commit 9beb117

Browse files
committed
fix compile
1 parent b62f4ff commit 9beb117

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/channel/bounded.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ impl<T> Sender<T> {
127127
/// # Errors
128128
/// - If the channel is full
129129
/// - If the channel is dropped
130-
pub async fn try_send(&self, msg: T) -> Result<(), TrySendError<T>> {
130+
pub fn try_send(&self, msg: T) -> Result<(), TrySendError<T>> {
131131
#[cfg(async_channel_impl = "flume")]
132132
let result = self.0.try_send(msg);
133133
#[cfg(not(all(async_channel_impl = "flume")))]
134-
let result = self.0.try_send(msg).await;
134+
let result = self.0.try_send(msg);
135135

136136
result
137137
}

0 commit comments

Comments
 (0)