Skip to content

Commit

Permalink
Have LiqudidityManager wake BackgroundProcessor for msg processing
Browse files Browse the repository at this point in the history
Instead of doing the callback dance, we have
`lightning-background-processor` take `lightning-liquidity` as a
dependency and wake the BP whenever we enqueue new messages to the
`MessageQueue`.
  • Loading branch information
tnull committed Jan 28, 2025
1 parent ff48a27 commit 03eb649
Show file tree
Hide file tree
Showing 7 changed files with 129 additions and 128 deletions.
3 changes: 2 additions & 1 deletion lightning-background-processor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ rustdoc-args = ["--cfg", "docsrs"]

[features]
futures = [ ]
std = ["lightning/std", "bitcoin-io/std", "bitcoin_hashes/std"]
std = ["lightning/std", "lightning-liquidity/std", "bitcoin-io/std", "bitcoin_hashes/std"]

default = ["std"]

Expand All @@ -25,6 +25,7 @@ bitcoin_hashes = { version = "0.14.0", default-features = false }
bitcoin-io = { version = "0.1.2", default-features = false }
lightning = { version = "0.2.0", path = "../lightning", default-features = false }
lightning-rapid-gossip-sync = { version = "0.2.0", path = "../lightning-rapid-gossip-sync", default-features = false }
lightning-liquidity = { version = "0.2.0", path = "../lightning-liquidity", default-features = false}

[dev-dependencies]
tokio = { version = "1.35", features = [ "macros", "rt", "rt-multi-thread", "sync", "time" ] }
Expand Down
Loading

0 comments on commit 03eb649

Please sign in to comment.