@@ -155,6 +155,7 @@ impl std::fmt::Debug for LogWriterConfig {
155155 }
156156}
157157
158+ #[ cfg_attr( feature = "uniffi" , allow( dead_code) ) ]
158159enum ProbingStrategyKind {
159160 HighDegree { top_n : usize } ,
160161 Random { max_hops : usize } ,
@@ -604,13 +605,15 @@ impl NodeBuilder {
604605 /// Configures background probing toward the highest-degree nodes in the network graph.
605606 ///
606607 /// `top_n` controls how many of the most-connected nodes are cycled through.
608+ #[ cfg_attr( feature = "uniffi" , allow( dead_code) ) ]
607609 pub fn set_high_degree_probing_strategy ( & mut self , top_n : usize ) -> & mut Self {
608610 let kind = ProbingStrategyKind :: HighDegree { top_n } ;
609611 self . probing_strategy = Some ( self . make_probing_config ( kind) ) ;
610612 self
611613 }
612614
613615 /// Configures background probing via random graph walks of up to `max_hops` hops.
616+ #[ cfg_attr( feature = "uniffi" , allow( dead_code) ) ]
614617 pub fn set_random_probing_strategy ( & mut self , max_hops : usize ) -> & mut Self {
615618 let kind = ProbingStrategyKind :: Random { max_hops } ;
616619 self . probing_strategy = Some ( self . make_probing_config ( kind) ) ;
@@ -619,8 +622,9 @@ impl NodeBuilder {
619622
620623 /// Configures a custom probing strategy for background channel probing.
621624 ///
622- /// When set, the node will periodically call [`ProbingStrategy::next_probe`] and dispatch the
625+ /// When set, the node will periodically call [`probing:: ProbingStrategy::next_probe`] and dispatch the
623626 /// returned probe via the channel manager.
627+ #[ cfg_attr( feature = "uniffi" , allow( dead_code) ) ]
624628 pub fn set_custom_probing_strategy (
625629 & mut self , strategy : Arc < dyn probing:: ProbingStrategy > ,
626630 ) -> & mut Self {
@@ -630,6 +634,7 @@ impl NodeBuilder {
630634 }
631635
632636 /// Overrides the interval between probe attempts. Only has effect if a probing strategy is set.
637+ #[ cfg_attr( feature = "uniffi" , allow( dead_code) ) ]
633638 pub fn set_probing_interval ( & mut self , interval : Duration ) -> & mut Self {
634639 if let Some ( cfg) = & mut self . probing_strategy {
635640 cfg. interval = interval;
@@ -639,6 +644,7 @@ impl NodeBuilder {
639644
640645 /// Overrides the maximum millisatoshis that may be locked in in-flight probes at any time.
641646 /// Only has effect if a probing strategy is set.
647+ #[ cfg_attr( feature = "uniffi" , allow( dead_code) ) ]
642648 pub fn set_max_probe_locked_msat ( & mut self , max_msat : u64 ) -> & mut Self {
643649 if let Some ( cfg) = & mut self . probing_strategy {
644650 cfg. max_locked_msat = max_msat;
@@ -653,15 +659,17 @@ impl NodeBuilder {
653659 /// quadratically over 24 hours.
654660 ///
655661 /// This is only useful for probing strategies that route through the scorer
656- /// (e.g., [`HighDegreeStrategy`]). Strategies that build paths manually
657- /// (e.g., [`RandomStrategy`]) bypass the scorer entirely.
662+ /// (e.g., [`probing:: HighDegreeStrategy`]). Strategies that build paths manually
663+ /// (e.g., [`probing:: RandomStrategy`]) bypass the scorer entirely.
658664 ///
659665 /// If unset, LDK's default of `0` (no penalty) is used.
666+ #[ cfg_attr( feature = "uniffi" , allow( dead_code) ) ]
660667 pub fn set_probing_diversity_penalty_msat ( & mut self , penalty_msat : u64 ) -> & mut Self {
661668 self . probing_diversity_penalty_msat = Some ( penalty_msat) ;
662669 self
663670 }
664671
672+ #[ cfg_attr( feature = "uniffi" , allow( dead_code) ) ]
665673 fn make_probing_config ( & self , kind : ProbingStrategyKind ) -> ProbingStrategyConfig {
666674 let existing = self . probing_strategy . as_ref ( ) ;
667675 ProbingStrategyConfig {
0 commit comments