chore: fix unnameable-types lint on core, payload and primitives-traits crates (#9724)

This commit is contained in:
Tuan Tran
2024-07-23 19:08:01 +07:00
committed by GitHub
parent 48c42f5630
commit 88c7b2cfa1
5 changed files with 6 additions and 5 deletions

View File

@ -20,11 +20,12 @@ pub enum Events<Engine: PayloadTypes> {
/// Represents a receiver for various payload events.
#[derive(Debug)]
pub struct PayloadEvents<Engine: PayloadTypes> {
/// The receiver for the payload events.
pub receiver: broadcast::Receiver<Events<Engine>>,
}
impl<Engine: PayloadTypes + 'static> PayloadEvents<Engine> {
// Convert this receiver into a stream of PayloadEvents.
/// Convert this receiver into a stream of `PayloadEvents`.
pub fn into_stream(self) -> BroadcastStream<Events<Engine>> {
BroadcastStream::new(self.receiver)
}

View File

@ -113,7 +113,7 @@ pub mod noop;
#[cfg(any(test, feature = "test-utils"))]
pub mod test_utils;
pub use events::Events;
pub use events::{Events, PayloadEvents};
pub use reth_rpc_types::engine::PayloadId;
pub use service::{
PayloadBuilderHandle, PayloadBuilderService, PayloadServiceCommand, PayloadStore,