feat: remove closed flag from ChannelState

This commit is contained in:
Callum Leslie 2025-09-15 11:38:00 +01:00
parent 32b7aa65e6
commit ca4825552f
Signed by: cleslie
GPG key ID: D382C4AFEECEAA90
5 changed files with 16 additions and 36 deletions

View file

@ -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,