Skip to content

Add BackgroundProcessor::start_without_om #3612

Closed

Description

@TheBlueMatt

BackgroundProcessor::start takes an Option for the OnionMessenger which is quite annoying as it requires a concrete type for the OnionMessenger even when passing None. We should add a new constructor to make this easier for users.

Activity

  1. added this to the 0.2 milestone on Feb 21, 2025
  2. Anyitechs commented on Feb 25, 2025

    @Anyitechs
    Contributor

    Hi @TheBlueMatt, I'll like to work on this issue. Can it be assigned to me please?

  3. TheBlueMatt commented on Feb 25, 2025

    @TheBlueMatt
    CollaboratorAuthor

    Go for it!

  4. Anyitechs commented on Feb 25, 2025

    @Anyitechs
    Contributor

    Go for it!

    Thank you @TheBlueMatt. On it!

  5. tnull commented on Mar 3, 2025

    @tnull
    Contributor

    It might be a bit late to mention this, but given that we'll need to introduce similar variants for LiquidiityManager in/post #3509, I wonder if we should use a builder pattern or have the BP take a BackgroundProcessorConfig or similar?

    Otherwise the API might get a bit messy if we add constructors for all combinations of parameters?

  6. Anyitechs commented on Mar 14, 2025

    @Anyitechs
    Contributor

    It might be a bit late to mention this, but given that we'll need to introduce similar variants for LiquidiityManager in/post #3509, I wonder if we should use a builder pattern or have the BP take a BackgroundProcessorConfig or similar?

    Otherwise the API might get a bit messy if we add constructors for all combinations of parameters?

    Good call @tnull. IMO I believe the builder pattern is the most flexible solution that can easily accommodate future additions. I'll open a PR for this mid next week.

  7. added a commit that references this issue on Sep 22, 2025
    9ee959c
  8. self-assigned this
    on Sep 22, 2025
  9. added 6 commits that reference this issue on Sep 22, 2025
    f676ce8
    e76eb2e
    6761fe8
    eafb72d
    cd7e347
    0d59d73
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions