Skip to content

Commit

Permalink
Remove more unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Lohann committed Sep 2, 2024
1 parent 8c90987 commit a7219d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
6 changes: 0 additions & 6 deletions chains/ethereum/server/src/block_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ where
RPC::SubscriptionError: Send + Sync,
{
stream: Option<EthereumEventStream<P, RPC>>,
// block_tree: VecDeque<TinyVec<[BlockRef; 3]>>,
// head: Option<BlockRef>,
// best_block: Option<BlockRef>,
state: State,
}

Expand All @@ -54,9 +51,6 @@ where
pub fn new(provider: P, client: RPC, state: State) -> Self {
Self {
stream: Some(EthereumEventStream::new(client, provider)),
// block_tree: VecDeque::with_capacity(2048),
// head: None,
// best_block: None,
state,
}
}
Expand Down
6 changes: 1 addition & 5 deletions rosetta-utils/src/futures/throttle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ impl<F: FutureFactory + 'static> Throttle<F> where F::Output: Clone {
pub fn new(callback: F, delay: Duration) -> Self {
Self { callback, delay, state: State::Idle }
}

// pub fn flush(&mut self) {
// let future = self.callback.new_future();
// self.future = Some(self.callback.new_future().shared());
// }
}

impl <'a, F: FutureFactory + 'a> Future for Throttle<F> {
Expand Down Expand Up @@ -82,6 +77,7 @@ impl <'a, F: FutureFactory + 'a> Future for Throttle<F> {
}
},
};

}
}

Expand Down

0 comments on commit a7219d2

Please sign in to comment.