mirror of
https://github.com/callumio/suck.git
synced 2025-12-17 03:29:21 +00:00
Remove unnecessary Mutex
This commit is contained in:
parent
9843f2904c
commit
b577a01f9a
4 changed files with 12 additions and 6 deletions
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue