Skip to content

Commit d011755

Browse files
committed
Fix bench lifetimes.
1 parent 6d53b1e commit d011755

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10477,13 +10477,13 @@ pub mod bench {
1047710477
&'a test_utils::TestFeeEstimator, &'a test_utils::TestRouter<'a>,
1047810478
&'a test_utils::TestLogger>;
1047910479

10480-
struct ANodeHolder<'a, P: Persist<InMemorySigner>> {
10481-
node: &'a Manager<'a, P>,
10480+
struct ANodeHolder<'node_cfg, 'chan_mon_cfg: 'node_cfg, P: Persist<InMemorySigner>> {
10481+
node: &'node_cfg Manager<'chan_mon_cfg, P>,
1048210482
}
10483-
impl<'a, P: Persist<InMemorySigner>> NodeHolder for ANodeHolder<'a, P> {
10484-
type CM = Manager<'a, P>;
10483+
impl<'node_cfg, 'chan_mon_cfg: 'node_cfg, P: Persist<InMemorySigner>> NodeHolder for ANodeHolder<'node_cfg, 'chan_mon_cfg, P> {
10484+
type CM = Manager<'chan_mon_cfg, P>;
1048510485
#[inline]
10486-
fn node(&self) -> &Manager<'a, P> { self.node }
10486+
fn node(&self) -> &Manager<'chan_mon_cfg, P> { self.node }
1048710487
#[inline]
1048810488
fn chain_monitor(&self) -> Option<&test_utils::TestChainMonitor> { None }
1048910489
}

0 commit comments

Comments
 (0)