mirror of
https://github.com/callumio/suck.git
synced 2025-12-17 03:29:21 +00:00
feat: remove closed flag from ChannelState
This commit is contained in:
parent
32b7aa65e6
commit
ca4825552f
5 changed files with 16 additions and 36 deletions
|
|
@ -64,10 +64,7 @@ impl<T> CrossbeamSuck<T> {
|
|||
let (request_tx, request_rx) = CrossbeamChannel::create_request_channel();
|
||||
let (response_tx, response_rx) = CrossbeamChannel::create_response_channel::<T>();
|
||||
|
||||
let state = std::sync::Arc::new(std::sync::Mutex::new(crate::types::ChannelState {
|
||||
source: crate::types::ValueSource::None,
|
||||
closed: false,
|
||||
}));
|
||||
let state = std::sync::Arc::new(std::sync::Mutex::new(crate::types::ValueSource::None));
|
||||
|
||||
let sucker = crate::Sucker {
|
||||
request_tx,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue