Skip to content

Commit

Permalink
feat: make PayloadBuilderHandle pub (#5578)
Browse files Browse the repository at this point in the history
  • Loading branch information
idatsy authored Nov 27, 2023
1 parent 13af07c commit ca9f236
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crates/payload/builder/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ pub struct PayloadBuilderHandle {
// === impl PayloadBuilderHandle ===

impl PayloadBuilderHandle {
pub(crate) fn new(to_service: mpsc::UnboundedSender<PayloadServiceCommand>) -> Self {
/// Creates a new payload builder handle for the given channel.
///
/// Note: this is only used internally by the [PayloadBuilderService] to manage the payload
/// building flow See [PayloadBuilderService::poll] for implementation details.
pub fn new(to_service: mpsc::UnboundedSender<PayloadServiceCommand>) -> Self {
Self { to_service }
}

Expand Down Expand Up @@ -349,7 +353,7 @@ type PayloadFuture =
Pin<Box<dyn Future<Output = Result<Arc<BuiltPayload>, PayloadBuilderError>> + Send + Sync>>;

/// Message type for the [PayloadBuilderService].
pub(crate) enum PayloadServiceCommand {
pub enum PayloadServiceCommand {
/// Start building a new payload.
BuildNewPayload(
PayloadBuilderAttributes,
Expand Down

0 comments on commit ca9f236

Please sign in to comment.