Skip to content

Commit 2ecf9d3

Browse files
committed
remove Downstream_data from the downstream_data to downstream
1 parent dfec641 commit 2ecf9d3

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

  • pool-apps/pool/src/lib/downstream

pool-apps/pool/src/lib/downstream/mod.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,6 @@ use crate::{
3939
mod common_message_handler;
4040
mod extensions_message_handler;
4141

42-
/// Holds state related to a downstream connection's mining channels.
43-
///
44-
/// This includes:
45-
/// - Whether the downstream requires a standard job (`require_std_job`).
46-
/// - A [`GroupChannel`].
47-
/// - Active [`ExtendedChannel`]s keyed by channel ID.
48-
/// - Active [`StandardChannel`]s keyed by channel ID.
49-
/// - Extensions that have been successfully negotiated with this client
50-
pub struct DownstreamData {}
51-
5242
/// Communication layer for a downstream connection.
5343
///
5444
/// Provides the messaging primitives for interacting with the
@@ -72,7 +62,6 @@ pub struct DownstreamChannel {
7262
/// Represents a downstream client connected to this node.
7363
#[derive(Clone)]
7464
pub struct Downstream {
75-
pub downstream_data: Arc<Mutex<DownstreamData>>,
7665
downstream_channel: DownstreamChannel,
7766
pub downstream_id: usize,
7867
pub requires_standard_jobs: Arc<AtomicBool>,
@@ -139,11 +128,8 @@ impl Downstream {
139128
connection_token,
140129
};
141130

142-
let downstream_data = Arc::new(Mutex::new(DownstreamData {}));
143-
144131
Downstream {
145132
downstream_channel,
146-
downstream_data,
147133
downstream_id,
148134
requires_standard_jobs: Arc::new(AtomicBool::new(false)),
149135
requires_custom_work: Arc::new(AtomicBool::new(false)),

0 commit comments

Comments
 (0)