mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: fix unnameable-types lint on core, payload and primitives-traits crates (#9724)
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user