Remove unnecessary Mutex

This commit is contained in:
Roman Moisieiev 2025-09-12 14:04:07 +01:00
parent 9843f2904c
commit b577a01f9a
4 changed files with 12 additions and 6 deletions

View file

@ -1,3 +1,5 @@
use std::sync::atomic::AtomicBool;
#[cfg(feature = "sync-flume")]
use crate::sync::traits::{ChannelError, ChannelReceiver, ChannelSender, ChannelType};
use crate::types;
@ -70,7 +72,7 @@ impl<T> FlumeSuck<T> {
let sucker = crate::Sucker {
request_tx,
response_rx,
closed: std::sync::Mutex::new(false),
closed: AtomicBool::new(false),
_phantom: std::marker::PhantomData,
};